OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Terox on 05 Aug 2003, 23:49:23
-
East Pilot E1
West Pilot W1
I want to make the two unarmed choppers i have on this C&H mission, only used for Recon
The mission is an all tank mission except this ariel recon element
For the choppers i want to enforce the following citeria
If the player dismounts outside his safezone (Esafezone or WSafezone) he dies (Stops him being able to flag cap)
Nobody but the two pilots can get in thse choppers
Choppers used are the Kamov (1 seater) named C1
and the Apache (2 seater) named C2
So possibilities i can think of
Choppers are locked for all but E1 (Kamov) & W1 (Apache), this may be the easiset how do i do it
(Rather than using an event handler)
Would it be easier to have these pilots already in their choppers at the start of the mission and every time they respawn and have it locked by default (is this possible)
I knowq these are probably simple questions to the CoOpers but to a non coop map maker i never used anything like this before
Whatever is the simplest and easiest
Thanks in anticipation
-
This may not be exactly what you need (and it's an event handler), but back in March, I did a sketch of a solution for a guy who only wanted pilots in helos:
http://www.ofpec.com/yabbse/index.php?board=7;action=display;threadid=7082;start=0 (http://www.ofpec.com/yabbse/index.php?board=7;action=display;threadid=7082;start=0)
(Its an eventhandler that can throw out any player that isn't a pilot from a helo. Customization needed, of course)
Regards
-
Thanks killswitch, prior to your post i found another simpler solution
In my case i have 1 pilot on each side and 1 chopper
so i locked the chopper in the editor
and added the following to the init field of the pilot
this moveInDriver C1
where C1 was the name of the chopper.
This did the trick.
However if i wanted the choppers to respawn, then your solution would have gone a long way into solving it, so thanks
What i did find was
vehicle lock true or false etc
_vcl lock true (As in a vehicle respawn script)
c1 lock true
doesnt work, using whatever local or global variable i wanted for the choppers
so you have to lock for all and then move your pilot in as driver
Its a great way to have a chopper in a match map only used for intel gathering, if of course u dont want it respawning because the pilot is locked inside the vehicle and therefore cant get out to cap a flag