Arma 3
Waypoint activation upon entering vehicle?
Hello,

I am trying to figure out how to keep an AI controlled SUV to sit still until a specific AI unit enters that vehicle. So far I haven't gotten it to work, nor could I find anything to help online with something this specific. Hopefully someone has the solution.

Thanks
< >
Showing 1-5 of 5 comments
Fenris 89 Jun 13, 2019 @ 12:14pm 
Place an waypoint in the front of the vehicle and an 2nd somewhere!
Place an trigger on the vehicle position and make an "waypoint activation" with the 1st waypoint!

Trigger:

Activation: Blufor
present
size: 5x5

Condition: player1 in veh1;

player1 - name of the player
veh1 - name of the vehicle (not the driver)

Originally posted by Hunter89:
Place an waypoint in the front of the vehicle and an 2nd somewhere!
Place an trigger on the vehicle position and make an "waypoint activation" with the 1st waypoint!

Trigger:

Activation: Blufor
present
size: 5x5

Condition: player1 in veh1;

player1 - name of the player
veh1 - name of the vehicle (not the driver)

When I try this, the SUV just drives to the waypoint when I start the mission. It seems the trigger isn't working?
Fenris 89 Jun 13, 2019 @ 12:52pm 
The trigger activation should be the side which you use! I use Blufor only as example! But if you use mods (maybe CUP or RHS), than it can be this an problem!
B✪✪tsy Jun 14, 2019 @ 2:54am 
The example given by Hunter is for a player getting in that car, you will probably want to use an other name than 'player1' for the AI.

To keep an AI car in position simply set the fuel to zero and then enable it again when the AI sits in the car.

If the mission starts with the car standing still then you can just place 'this setfuel 0' in the car init. and in the bluefor trigger you set the fuel to 1 again 'vehiclename setfuel 1;'

This will prevent the AI car from driving away before you want it to.

Dankan37 Jun 14, 2019 @ 6:34am 
You could place a condition in the car driver's waypoint.

In the destination waypoint's condition put (triggerActivated moveAllowed), now create a trigger called "moveAllowed" and put in the condition "unit1 in car", where unit1 is the unit and car is the car.


This is a rude method btw, I'd suggest you to use a FSM or something similar.
< >
Showing 1-5 of 5 comments
Per page: 1530 50

Date Posted: Jun 13, 2019 @ 11:48am
Posts: 5