I have an annoying problem and I need your help guys. :'(
I've made a multiplayer Vietnam mission that contains a few scripts, other than enemies and stuff. At one point in the mission, your whole team of 3 gets captured by the enemy. First there is a film sequence and during that sequence I move around the players to certain spots, where they will be standing after the film has ended. I also "teleport" some VC's to surround them.
Now all the players have been set to "setCaptive true" in the same script that I used for moving them about. In the editor everything goes as planned. The players appear in a house, the enemies stand outside, holding their fire.
When playing the mission in multiplayer however, the "setCaptive" command only applies to the host and possible AI players. If another human player joins the game, the enemy for some darn reason starts firing at him!
I have tested this several times now with a friend, and it doesn't matter which character he picks in the pool, the enemy still fires at him, leaving me and the AI alone.
Why is it that "setCaptive" apparently sometimes doesn't work in multiplayer? I have thought about whether the script should be executed in a different way.
At the moment the trigger looks like this:
condition: not alive vc1 && not alive vc1_1
on activation: [this] exec "trap.sqs"
maybe it should rather be executed like: [] exec "trap.sqs",
instead of [this] (not very good at scripting but I believe that "this" is unnecessary).
I know that the script "trap.sqs" works in single player so why shouldn't it in multi? There are some camera, "setpos" and "addweapon" commands, stuff like that, but other than that just "player1 setCaptive true" and "player2 setCaptive true" etc.
Plz help, you are the best