Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: Detect if vehicle is in water  (Read 685 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 »