OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Bulletsfire on 23 Jan 2004, 05:13:35

Title: trigger activate when in vehicle
Post by: Bulletsfire on 23 Jan 2004, 05:13:35
ok, i want a guy in a car to wait to move until im in the car, how do i do that were both civilians
Title: Re:trigger activate when in vehicle
Post by: deaddog on 23 Jan 2004, 05:19:41
One way would be to give the car no fuel.  Set the fuel slider all the way to the left or in the init line of the car type "this setfuel 0".  Give the car a name.

Place a trigger:
condition: vehicle player == nameofcar
activation: nameofcar setfuel 1

Title: Re:trigger activate when in vehicle
Post by: myke13021 on 23 Jan 2004, 13:37:22
hmmm.....wouldn't that work with waypoints? saying, loon in car make a load waypoint, player make a getin waypoint and sync them together?
Title: Re:trigger activate when in vehicle
Post by: deaddog on 23 Jan 2004, 15:02:20
Quote
hmmm.....wouldn't that work with waypoints?
It would but what if the player doesn't go to the waypoints in the correct order?  It would work ok if it was the first waypoint.

It is better not to use waypoints for the player.  Veteran mode players can't even see the waypoints, for one thing.
Title: Re:trigger activate when in vehicle
Post by: myke13021 on 23 Jan 2004, 15:26:22
It would but what if the player doesn't go to the waypoints in the correct order?  It would work ok if it was the first waypoint.

Aye right Deaddog...forgot about that
Title: Re:trigger activate when in vehicle
Post by: h- on 23 Jan 2004, 17:41:09
Make a trigger, axis': 0,0
Type: None (if this won't work, try Switch)
Condition: player in nameOfTheCar

And synchronize (F5) the trigger with the cars waypoint in which you want the car to wait for you...

Should work,
But not giving any guarantees  :P