OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Mike on 09 Jan 2003, 00:12:29

Title: someone has used car?
Post by: Mike on 09 Jan 2003, 00:12:29
What would be the best way to find out if someone is inside a vehicle? I am making a simple car theft script and I dont want to have to make a trigger for every car.. so if I can execute something that will activate when someone gets in the car. How and Thanks :)
Title: Re:someone has used car?
Post by: Tomb on 09 Jan 2003, 00:18:03
try:


_vehicle = this select 0

? _vehicleD in _vehicle: blahblah


Title: Re:someone has used car?
Post by: LCD on 09 Jan 2003, 00:26:07
LOL @ Tomb

Quote
I dont want to have to make a trigger for every car..

so u want him 2 exec script 4 every car ?

 ::) ::) ::)

LCD OUT
Title: Re:someone has used car?
Post by: Tomb on 09 Jan 2003, 00:30:20
nope! I just forgot to add the triggerName-part of it all  ::)

som'n about "all cars in thislist == _vehicle (if anyone gets into one of 'em)

sorry lsd, too busy to think clear right now! she's going down again  ::) 8) ;D
Title: Re:someone has used car?
Post by: Mike on 09 Jan 2003, 00:34:34
what about if the fuel isn't exactly 1?

? fuel of _unit > 1 : Goto "ok"

I dont know if Im supposed to use a < or >

is there a way to check fuel status of a unit?