CPU Controlled Unit Losing Follow Target

Status
Not open for further replies.
Level 3
Joined
Nov 8, 2009
Messages
39
I've been developing a trade caravan system that features a convoy of pack animals following a merchant: https://www.hiveworkshop.com/threads/marcher-lords.221203/post-2201807. The trouble is, the animals lose their target and stop moving (or sometimes run off to the point they were created at) if they have to pause for even a second to recalculate the pathing route. This is with collision disabled and/or set to zero. Making the unit fly at a low height is one solution I've experimented with, but this is obviously not ideal from an aesthetic standpoint. Any ideas?
 
Indeed, that's what I meant by disabled and/or set to zero; I get the same effect with the SetUnitPathing native. It seems to be tied to the fact that the unit's controller is a computer, because if I recreate the same situation by ordering my own units to follow in a similar caravan formation, they won't lose their follow target. The timeout seems to be very short when the units belong to different players or players of different controller types. Presently, I'm just using a periodic timer to reissue the order every second, which seems to work, but I'd still like to find a solution with less trigger overhead.
 
Status
Not open for further replies.
Back
Top