Jump to content
chondo999

Trigger to check when player leaves a vehicle

Recommended Posts

Well it doesn't work like that.

 

!(player in (crew vehicleName))

 

Thanks guys.

Share this post


Link to post
Share on other sites
_position = screenToWorld [0.5, 0.5];
suv = createVehicle ["C_SUV_01_F", _position, [], 0, "NONE"];
_trigger = createTrigger ["EmptyDetector", _position];
_trigger setTriggerActivation ["ANY", "PRESENT", true];
_trigger setTriggerArea [10, 10, 0, false];
_trigger setTriggerStatements ["this && {player in suv}", "systemChat 'active'", "systemChat 'inactive'"];

https://community.bistudio.com/wiki/in_vehicle

 

It's not "player in vehicleName", it's "player in vehicleObject".

 

Just sayin'...

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×