Hello,
How can I activate a certain trigger only for human players that are currently in a plane? (so NOT an AH-64 but an SU 25 for example)
Me and a friend got back on playing the classic MFCTI Coop missions. Then we found out that it was very frustating to spend a fortune on a couple of planes and then crashing them on attempting to take of on a hilly landscape with obstacles all over the place.
So I wrote a VTOL script to solve it. But my next problem is to inplement them in the mission. It should go like this: Player purchases plane -> gets in as pilot -> trigger detects player is in plane -> option of VTOL becomes available in action menu -> player uses VTOL -> VTOL action removed from action menu. I'm an avarage scripter and here's my script:
VTOL = true
_p = _this Select 0
_t = 0
#h
~0.001
_p setVelocity [0,0,5]
_t = _t + 1
?(_t > 350): Goto "s"
Goto "h"
#s
_p setVelocity [0,150,0]
exit
Now I just need a trigger that: adds the action ONLY when a human player is in a vehicle type of "plane" and then the trigger removes it when VTOL = true.