Advertisement
Guest User

Push ability

a guest
Feb 22nd, 2013
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. Push
  2. Events
  3. Unit - Any Unit uses Generic - Push (Generic) at Effect4 - Channel stage (Include shared abilities)
  4. Local Variables
  5. caster = No Unit <Unit>
  6. angle = 0.0 <Real>
  7. Conditions
  8. Actions
  9. Variable - Set caster = (Triggering unit)
  10. Variable - Set angle = (Facing of caster)
  11. General - If (Conditions) then do (Actions) else do (Actions)
  12. If
  13. ((Triggering unit) Movement Speed (Default)) <= 2.1
  14. Then
  15. Actor - Send message (SetScale 2.0, 2.0, 2.0 0.0) to actor ("PushStart" actor from the scope (Actor scope for (Triggering unit)))
  16. Else
  17. General - If (Conditions) then do (Actions) else do (Actions)
  18. If
  19. ((Triggering unit) Movement Speed (Default)) > 2.1
  20. ((Triggering unit) Movement Speed (Default)) <= 2.45
  21. Then
  22. Actor - Send message (SetScale 1.2, 1.2, 1.2 0.0) to actor ("PushStart" actor from the scope (Actor scope for (Triggering unit)))
  23. Else
  24. General - While (Conditions) are true, do (Actions)
  25. Conditions
  26. (caster has Generic - Push (Buff)) == True
  27. (((Position of caster) offset by 0.3 towards angle degrees) is passable) == True
  28. Actions
  29. Unit - Move caster instantly to ((Position of caster) offset by (0.075 + ((caster Radius (Current)) * 0.125)) towards angle degrees) (Blend)
  30. General - Wait 0.0 Game Time seconds
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement