Advertisement
Guest User

Apply Force

a guest
Feb 22nd, 2013
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.74 KB | None | 0 0
  1. Apply Force
  2. Options: Action, Create Thread
  3. Return Type: (None)
  4. Parameters
  5. Unit = (Triggering unit) <Unit>
  6. Initial Force = 1.0 <Real>
  7. Direction = (Facing of (Triggering unit)) <Real>
  8. Duration = 1.0 <Real>
  9. Bounce = False <Boolean>
  10. Grammar Text: Apply Force(Unit, Initial Force, Direction, Duration, Bounce)
  11. Hint Text: (None)
  12. Custom Script Code
  13. Local Variables
  14. force = Initial Force <Real>
  15. steps = (Duration * 16.0) <Real>
  16. temppoint = No Point <Point[2]>
  17. inta = 0 <Integer>
  18. ------- Mist vs Pulse and Punish
  19. mist = No Unit <Unit>
  20. radius = 0.0 <Real>
  21. modified step = 0.0 <Real>
  22. distance = 0.0 <Real>
  23. Actions
  24. General - If (Conditions) then do (Actions) else do (Actions)
  25. General - While (Conditions) are true, do (Actions)
  26. Conditions
  27. force > 0.0
  28. Actions
  29. General - If (Conditions) then do (Actions) else do (Actions)
  30. General - If (Conditions) then do (Actions) else do (Actions)
  31. If
  32. (((Position of Unit) offset by force towards Direction degrees) is passable) == True
  33. Then
  34. General - If (Conditions) then do (Actions) else do (Actions)
  35. If
  36. Then
  37. Else
  38. Unit - Move Unit instantly to ((Position of Unit) offset by force towards Direction degrees) (Blend)
  39. Variable - Modify force: - (Initial Force / steps)
  40. Else
  41. General - Wait 0.0625 Game Time seconds
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement