Home   Help Search Login Register  

Author Topic: How to detect if unit is on road surface  (Read 1396 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.