Description
Applies an instantaneous change in velocity to the movement of one or more players.
Arguments
Name: PLAYER
Description: The player or players whose velocity will be changed.
Type:
- Player
- Array: Player
Default: EVENT PLAYER
Name: DIRECTION
Description: The unit direction in which the impulse will be applied. This value is normalized internally.
Type: Direction
Default: VECTORName: SPEED
Description: The magnitude of the change to the velocities of the player or players.
Type: float
Default: 0Name: RELATIVE
Description: Specifies whether direction is relative to world coordinates or the local coordinates of the player or players.
Type: Relativity
Default: TO WORLDName: MOTION
Description: Specifies whether existing velocity that is counter to direction should first be cancelled out before applying the impulse.
Type: Impulse
Default: CANCEL CONTRARY MOTION
To cancel a player's momentum, you can use this function as Workshop does not have a Stop Momentum function:
Apply Impulse(Event Player, Velocity Of(Event Player) * -1, Speed Of(Event Player), To World, Incorporate Contrary Motion);