View Full Version : teamSwitch problem
Hm... not sure if I am missing something, but I have a MP mission in work, and it does include a teamSwitch dialog at some point to switch to another group.
It does work when I test it in editor, and it does work as a single player mission, however when I tried it as a multiplayer mission (being the only player, hosting it myself), teamSwitch dialog does't want to pop up. I threw in some debugg messages, and script seems to normaly run over the teamSwitch line. There are enough units you can switch to and I can also force role switch with selectPlayer. enableTeamSwitch is true.
Any ideas what might be wrong?
AFAIK TeamSwitch doesn't work in MP only SP.
rundll.exe
Dec 5 2006, 21:21
Thats disappointing. But force role switch with selectPlayer does work?
Thats disappointing. But force role switch with selectPlayer does work?
The most important question ever. Tell me is does work indeed, plz http://forums.bistudio.com/oldsmileys/smile_o.gif
Thats disappointing. But force role switch with selectPlayer does work?
The most important question ever. Tell me is does work indeed, plz http://forums.bistudio.com/oldsmileys/smile_o.gif
And the answer is : YES http://forums.bistudio.com/oldsmileys/smile_o.gif
Thanks Lupus for testing http://forums.bistudio.com/oldsmileys/smile_o.gif
It does indeed, which is exactly why I though teamSwitch should work aswell.
Basicly you can script your own working teamSwitch dialog using selectPlayer, so I do not really understand why teamSwitch doesn't work...
CameronMcDonald
Dec 7 2006, 21:23
Cancel that, I'm just too damn good to be believed. http://forums.bistudio.com/oldsmileys/wink_o.gif
KaRRiLLioN
Jan 28 2007, 04:00
AFAIK, teamswitch does work, but I think you might need to be in the group, or be leader of that group because it has to be local to you to work properly.
I've had it work in MP before with the switch dialog, but when I took over the non-local unit, I couldn't control it. I have a mission that will move the player to a new group after death, create a unit, then move the player into that unit using selectPlayer, but I haven't tried it with the switch menu yet.
I'm dragging this old topic up rather than making a new one about the same topic.
I'm trying to make a MP mission in which players can change classes (unit models). To do this, I'm trying to use the selectPlayer (http://community.bistudio.com/wiki/selectPlayer) command. I can get the player to control a unit local to his client, but it seems his multiplayer ID stays with the old unit. The player adopts the name of the formerly AI controlled unit (eg, John Smith). Also interacting with anything using the new unit seems to = client and/or server CTD.
Can anybody show me an example of how to successfully use selectPlayer?
Op4 BuhBye
Apr 24 2007, 15:11
Team switch is on the BugList.
I can't see any bug that relates to the issues I'm having, and have seen numerous reports that select player functions correct in MP.
whisper
Apr 24 2007, 16:09
you first need to be sure the unit you try to selectPlayer to is local to player's PC. You can force this by making said unit join the player's group first.
I don't know if it will transfer player's identity to new unit, though. AFAIK it doesn't do it in SP, so it shouldn't in MP.
Quote[/b] ]you first need to be sure the unit you try to selectPlayer to is local to player's PC. You can force this by making said unit join the player's group first. I don't know if it will transfer player's identity to new unit, though. AFAIK it doesn't do it in SP, so it shouldn't in MP.
It took me a while to figure out what was happening, but I've already figured that out. I'm not especially concerned about the player identity, but the crashes are pretty undesirable. Did you encounter this problem when actually using the switched to unit?
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.