Jump to content
Sign in to follow this  
igneous01

out of path planning when unit ordered to get in vehicle?

Recommended Posts

ive spent hours searching for a solution and messing around with my script so that the unit gets in a vehicle. but he just wont do it for some reason. Sometimes depending on how fast he notices enemies he will immediatly jump in the vehicle. other times he will move towards the vehicle then stop like disableai move was placed on him, bugging out.

in the script i have a waituntil condition set to him either being in the vehicle, not alive, or the vehicle is not alive, or has no vehicle

i added a hint after the waituntil to see what happens. but when the unit bugs out, the rest of my script does not continue, yet after a certain amount of time the driver of the vehicle will move to the next position even tho the script hasnt finished waiting for the unit to get in. Im not sure if the script was aborted, or if something purposefully skipped. but im not getting any errors in my rpt file nor any errors in my script. sometimes it works, sometimes it doesnt.

heres the only clue to my problem in the rpt file.

Out of path-planning region for B 1-1-B:2 at 3680.0,3600.0, node type
Error B 1-1-B:2: Invalid path from [3677.61, 19.22, 3598.83] to [3675.63, 16.61, 3600.63].

the script works by checking if the unit has spotted any enemies, then once spotted the vehicle check script runs, making the unit get in a vehicle if he has one or finish running if he doesnt have one. then hes issues a move order to the gamelogic. but for some reason theres a chance he gets stuck when hes near the vehicle, making him unable to do anything.

anyone know how to fix this? does splitting a group into 2 cause this?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×