Is there an easy way to make units wander in an area, I have a city and I don't want the wandering villagers to leave.
Right now I have regions where I do not want them to pass and I made triggers to make them go back into the middle of the city if they go into those regions. I was also wondering if the trigger leaks.
Event - A unit enters region (Entrance)
Condition - Or (Any conditions are true)
-Triggering unit is equal to Villager Male
-Triggering unit is equal to Villager Male2
-Triggering unit is equal to Villager Female
-Triggering unit is equal to Child
-Triggering unit is equal to Child2
Action - Unit - Order unit to move to center of (Middle of city)
Right now I have regions where I do not want them to pass and I made triggers to make them go back into the middle of the city if they go into those regions. I was also wondering if the trigger leaks.
Event - A unit enters region (Entrance)
Condition - Or (Any conditions are true)
-Triggering unit is equal to Villager Male
-Triggering unit is equal to Villager Male2
-Triggering unit is equal to Villager Female
-Triggering unit is equal to Child
-Triggering unit is equal to Child2
Action - Unit - Order unit to move to center of (Middle of city)