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: How to detect if unit is on road surface  (Read 3099 times)

0 Members and 1 Guest are viewing this topic.

Offline johnnyboy

  • OFPEC Patron
  • ****
  • Matan los Pantalones!!!
How to detect if unit is on road surface
« on: 27 Jul 2009, 01:12:22 »
Is there a command that tells you what surface unit is standing on?

Specifically, I want to know if a unit is on a paved road or not.

Thx!
El Cojon: "Do you like to Tango?"
You: "Only in Bagango."
Download Last Tango in Bagango and discover how El Cojon earned his name...

Offline laggy

  • Members
  • *
  • "Behold a pale horse"
Re: How to detect if unit is on road surface
« Reply #1 on: 27 Jul 2009, 01:30:44 »
Yes ! Finally  :D

Code: [Select]
isOnRoad Johnnyboy
Great for checkpoint missions, or "cops and jaywalkers" for that matter  :good:

Cheers
« Last Edit: 27 Jul 2009, 01:35:11 by laggy »
And I looked and beheld a pale horse and his name that sat on him was Death and Hell followed with him.