Home   Help Search Login Register  

Author Topic: Detect if vehicle is in water  (Read 473 times)

0 Members and 1 Guest are viewing this topic.

Twyggy

  • Guest
Detect if vehicle is in water
« 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...

Offline Doolittle

  • Contributing Member
  • **
  • _this select 0
Re:Detect if vehicle is in water
« Reply #1 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
« Last Edit: 17 Mar 2003, 20:41:40 by Doolittle »