OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Twyggy on 17 Mar 2003, 19:20:55

Title: Detect if vehicle is in water
Post by: Twyggy on 17 Mar 2003, 19:20:55
How can I detect if vehicle(M113) is in water? Little example of script would be great. Thanx in advance to anybody who can help me...
Title: Re:Detect if vehicle is in water
Post by: Doolittle on 17 Mar 2003, 20:39:55
Code: [Select]
?(getPos MyVehicle) select 2 < -0.5 : hint "HELP I AM DROWNING!!"
Actually use a trigger I suppose. :)
A vehicle's position is [East/West, North/South, Up/Down], like [34, 100, 0] would be on the ground.

Doolittle