OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Lightning on 08 Feb 2003, 00:33:59

Title: <sigh> unloading player troops from heli's in co-op
Post by: Lightning on 08 Feb 2003, 00:33:59
i have a mission with 2 human players, sniper and spotter - everything works perfectly bar 1 thing...

the mission begins with them deploying from a heli - if i start this multiplayer game with 1 player to test it, it works as it should, the heli lands, the 2 troops deploy and the heli flies away.

add a second player, and for some reason when the heli lands the second player (person not running the server) will not deploy automatically, they have to get out manually, at which point the heli continues on its merry way

i've tried this with snyper's heli landing script, and with normal "transport unload" waypoints, the outcome is the same (and yes, i did have the "server" game logic in place when using snypers script ;) ).

can anyone suggest how i get the non AI player to disembark? what am i missing?  :'( short of forcing them to eject from the heli, i'm at a complete loss here
Title: Re:<sigh> unloading player troops from heli's in co-op
Post by: tanelorn on 08 Feb 2003, 18:22:08
this is a bug in the code. live players don't report to other ai units in the group that they have left the vehicle so the AI still think they are waiting for someone
Title: Re:<sigh> unloading player troops from heli's in co-op
Post by: Josef on 09 Feb 2003, 20:31:19
Use flyinheight;)
Title: Re:<sigh> unloading player troops from heli's in co-op
Post by: joltan on 10 Feb 2003, 13:18:23
i've tried this with snyper's heli landing script, and with normal "transport unload" waypoints, the outcome is the same (and yes, i did have the "server" game logic in place when using snypers script ;) ).
Just have a script/trigger ejecting them after the chopper is below 2m height. Also prevents ai from being stuck in the vehicle (sometimes its impossible to order them out).