OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Nasty Buttler on 24 Aug 2002, 23:07:00

Title: Stopping people from ejecting in multiplayer
Post by: Nasty Buttler on 24 Aug 2002, 23:07:00
I remember doing this ages ago, but silly me, i have forgotten the code for it.
I want people that get into an aircraft as cargo or any human cargo for that matter to be locked into the vehicle until the vehicle gets to the destination, i beleive it has someting to do with the STR_NO_ACTION but cant remember.

Any help would be appriciated

Title: Re:Stopping people from ejecting in multiplayer
Post by: Messiah on 25 Aug 2002, 00:13:37
well im pretty sure that all you have to do is lock the vehicle:

in the waypoint where the chopper loads up write this in the onactivation field:

choppername lock true

and when it gets to the drop off the chopper will kick the players out auto (transport unload) and they dont have to get ut themselves - or u can use lock false to unlock at the drop off.

:thumbsup:
Title: Re:Stopping people from ejecting in multiplayer
Post by: SFG on 25 Aug 2002, 07:19:35
What about a ?player in choppername on activation chopper lock true.. or to that effect.
Title: Re:Stopping people from ejecting in multiplayer
Post by: icarus_uk on 25 Aug 2002, 14:54:40
I use DisableUserInput but that stops them from doing anything, including ending the game until I give input back to them.  Then I put an intro over that part and no-one really notices.  ;D
Title: Re:Stopping people from ejecting in multiplayer
Post by: Tactician on 25 Aug 2002, 16:42:17
How about a trigger that locks the chopper above a certain altitude?

Condition: getPos choppername select 2 > 10
Activation: choppername lock true
Deactivation: choppername lock false

It will lock when the chopper is over 10 altitude and unlock when it goes back down.  Make sure it's activated repeatedly.
Title: Re:Stopping people from ejecting in multiplayer
Post by: Nasty Buttler on 26 Aug 2002, 01:47:42
Thanx guys thats it.....