Jump to content
Sign in to follow this  
bauerhousebourne

Trigger activate when vehicle stops

Recommended Posts

Hi!

I'm trying to make a unit get out of a Hunter once the player (the driver) stops the vehicle within the trigger radius. Then the unit will walk up to another npc, stay there a few seconds and then mount the vehicle again.

When I enter the trigger area, the trigger with OnAct: MAN1 doGetOut; then the unit exits the vehicle only to enter it again a few seconds later.

I've given the unit a waypoint but he insists on getting back in.

Is there a way to make the trigger activate once the player has come to a complete halt?

What am I doing wrong with the waypoint? Any ideas?

Any help is much appreciated! :)

Thanks in advance!

Edited by Bauerhousebourne

Share this post


Link to post
Share on other sites

In the triggers condition field put:

speed vehicle player <= 1;

Should do the trick.

You could add 2-3 seconds to the timeout values in the bottom left corner of the trigger window, then the unit will leave the vehicle 2-3 seconds after it stopped, bit more authentic.

Share this post


Link to post
Share on other sites
In the triggers condition field put:

speed vehicle player <= 1;

Should do the trick.

You could add 2-3 seconds to the timeout values in the bottom left corner of the trigger window, then the unit will leave the vehicle 2-3 seconds after it stopped, bit more authentic.

Worked great! Thanks a lot :D

But the unit (MAN1) still keeps going back inside the vehicle after he exits, any thoughts on how to prevent it?

Share this post


Link to post
Share on other sites
Worked great! Thanks a lot :D

But the unit (MAN1) still keeps going back inside the vehicle after he exits, any thoughts on how to prevent it?

For future Reference:

https://community.bistudio.com/wiki/Category:Scripting_Commands_Arma_3

Look after allowGetin, orderGetin and unassignVehicle.

You'd want to use all three of them to prevent the unit from boarding the vehicle again.

Cheers

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
Sign in to follow this  

×