• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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: http://www.hiveworkshop.com/forums/map-development-202/marcher-lords-221203/#post2201807. 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?
 
Level 3
Joined
Nov 8, 2009
Messages
39
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.
Top