Jump to content
Sign in to follow this  
aozyaman

setPlayable workaround

Recommended Posts

Just in case others have the same problem:

When trying to dynamically create spawnable units for Multi Player missions, the command setPlayable always crashes the server, or it simply doesn't work. So I tried using addSwitchableUnit, which I thought was only for single player Team Switching. And guess what, it works just fine for MP too smile_o.gif

So if you ever have a use for setPlayable in an MP scneario and are having problems with it, use addSwitchableUnit instead.

This problem had been p***ing me off for some time, and I thought I'd share the workaround.

Happy scripting smile_o.gif

Share this post


Link to post
Share on other sites

Thanks man! Now I can continue making my MP mission notworthy.gif

Share this post


Link to post
Share on other sites

I do not write in ingles, I hope that it is understood.

So that he walks to switchplayer well, the soldier must be local to the PC of the PLAYER. He is to say that createUnit in the same PC is due to use that tries to change of personage.

for PCs non server:

_ sold =... createUnit...;

selectPlayer _ sold;

smile_o.gif

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  

×