OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: benreeper on 09 Oct 2004, 19:55:09

Title: "Can't get there."
Post by: benreeper on 09 Oct 2004, 19:55:09
Is there a way to detect if a unit cannot reach a certain location (i.e. their way is blocked || or destination is over water, etc.)?  Your AI knows right away if this is true and will tell you.  Can this info be extracted?
--Ben
Title: Re:"Can't get there."
Post by: DBR_ONIX on 09 Oct 2004, 22:15:07
Basicly, no..
It would be very hard to do i guess  :-\
- Ben
Title: Re:"Can't get there."
Post by: RonMcAsskick on 19 Oct 2004, 02:11:22
try the overwater function in the function library for getting if target is in water


as for aircraft check getpos target select 2 is not greater than say 1 metre

speed checks for ground vehicles

if its navigating terrain do a constant unit ready check but how to know where he is suposed to be going i cant think, look into game code or commands in the comm ref, i'll ave a think about it tho

Ron
Title: Re:"Can't get there."
Post by: benreeper on 20 Oct 2004, 05:31:59
Thanks.
--Ben