Jump to content
Sign in to follow this  
HappyG

teamSwitch problem

Recommended Posts

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?

Share this post


Link to post
Share on other sites

AFAIK TeamSwitch doesn't work in MP only SP.

Share this post


Link to post
Share on other sites

Thats disappointing. But force role switch with selectPlayer does work?

Share this post


Link to post
Share on other sites
Thats disappointing. But force role switch with selectPlayer does work?

The most important question ever. Tell me is does work indeed, plz smile_o.gif

Share this post


Link to post
Share on other sites
Thats disappointing. But force role switch with selectPlayer does work?

The most important question ever. Tell me is does work indeed, plz smile_o.gif

And the answer is : YES smile_o.gif

Thanks Lupus for testing smile_o.gif

Share this post


Link to post
Share on other sites

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...

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 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?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×