OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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
-
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:
-
What about a ?player in choppername on activation chopper lock true.. or to that effect.
-
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
-
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.
-
Thanx guys thats it.....