Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Apply Force
- Options: Action, Create Thread
- Return Type: (None)
- Parameters
- Unit = (Triggering unit) <Unit>
- Initial Force = 1.0 <Real>
- Direction = (Facing of (Triggering unit)) <Real>
- Duration = 1.0 <Real>
- Bounce = False <Boolean>
- Grammar Text: Apply Force(Unit, Initial Force, Direction, Duration, Bounce)
- Hint Text: (None)
- Custom Script Code
- Local Variables
- force = Initial Force <Real>
- steps = (Duration * 16.0) <Real>
- temppoint = No Point <Point[2]>
- inta = 0 <Integer>
- ------- Mist vs Pulse and Punish
- mist = No Unit <Unit>
- radius = 0.0 <Real>
- modified step = 0.0 <Real>
- distance = 0.0 <Real>
- Actions
- General - If (Conditions) then do (Actions) else do (Actions)
- General - While (Conditions) are true, do (Actions)
- Conditions
- force > 0.0
- Actions
- General - If (Conditions) then do (Actions) else do (Actions)
- General - If (Conditions) then do (Actions) else do (Actions)
- If
- (((Position of Unit) offset by force towards Direction degrees) is passable) == True
- Then
- General - If (Conditions) then do (Actions) else do (Actions)
- If
- Then
- Else
- Unit - Move Unit instantly to ((Position of Unit) offset by force towards Direction degrees) (Blend)
- Variable - Modify force: - (Initial Force / steps)
- Else
- General - Wait 0.0625 Game Time seconds
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement