PDA

View Full Version : Trigger to check if I have land.



Kiptanoi
Jun 14 2009, 15:24
I have a trigger to look if I am getting in a helicopter
"Player in heli"
Then this trigger does this: ""3" objStatus "DONE"; player setCurrentTask obj_4"


Now.... how can i do a trigger to check if I land in a specific location, and get out of the helicopter.

Trigger need to be trigged when I am out of the chopper on a specific location, and make objStatus DONE on that task with "4" objStatus "DONE"; player setCurrentTask obj_5"

But how do I check if I have landed and get out och the helicopter on a specific location?

SNKMAN
Jun 14 2009, 16:56
if (heli distance targetPosition < 20 && !player in heli) then
{
Do what ever you want.
};

nullsystems
Jun 14 2009, 16:59
How about looking at distance command?
http://community.bistudio.com/wiki/distance