OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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
-
Basicly, no..
It would be very hard to do i guess :-\
- Ben
-
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
-
Thanks.
--Ben