OFPEC Forum

Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: johnnyboy on 27 Jul 2009, 01:12:22

Title: How to detect if unit is on road surface
Post by: johnnyboy 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!
Title: Re: How to detect if unit is on road surface
Post by: laggy 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