A unit learn skill, create a bear, add bear to a unit group. Every second, order unit group to follow owner.
When i learn that skill, the bear spawned but don't follow me? I don't know what's wrong with these trigger
When i learn that skill, the bear spawned but don't follow me? I don't know what's wrong with these trigger
-
Call of the Wind learn
-
Events
- Unit - A unit Learns a skill
-
Conditions
- (Learned Hero Skill) Equal to Call of the Wild
-
Actions
- Set CotW_Owner = (Triggering unit)
- Set CotW_Point = (Position of (Triggering unit))
- Set CotW_Level = (Level of Call of the Wild for (Triggering unit))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- CotW_Level Equal to 1
-
Then - Actions
- Unit - Create 1 Baby Te'dy Bear lv1 for (Owner of CotW_Owner) at CotW_Point facing Default building facing degrees
- Unit Group - Add (Last created unit) to CotW_Pet_Group
- Else - Actions
-
If - Conditions
-
Events
-
Pet follow
-
Events
- Time - Every 1.00 seconds of game time
- Conditions
-
Actions
-
Unit Group - Pick every unit in CotW_Pet_Group and do (Actions)
-
Loop - Actions
- Unit Group - Order CotW_Pet_Group to Right-Click CotW_Owner
-
Loop - Actions
-
Unit Group - Pick every unit in CotW_Pet_Group and do (Actions)
-
Events