- Joined
- Aug 8, 2010
- Messages
- 1,022
Hi! I want to ask how to make a unit spin around other unit (like the lightning bolts spin around the Shaman when Lightning shield is casted) here is what i tried, but it isn't working... Help???
-
Create lightning bolt
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Create electric balls [Electro]
-
Actions
- Set CastLoc = (Position of (Casting unit))
- Unit - Create 1 Lightning bolts for Player 1 (Red) at (CastLoc offset by 150.00 towards 18.00 degrees) facing Default building facing degrees
- Set Dabolt = (Last created unit)
- Set Circle = (CastLoc offset by (1.00, 20.00))
- Trigger - Turn on Make it move <gen>
-
Events
-
Make it move
-
Events
- Time - Every 0.20 seconds of game time
- Conditions
-
Actions
- Set Circle = (CastLoc offset by 150.00 towards ((X of CastLoc) + 18.00) degrees)
- Unit - Order Dabolt to Move To Circle
-
Events