Effect.setStartStopDistance
Sets an effect to stop and restart depending on distance to the player.
Kind: Function
Environments: Game
Game
effect:setStartStopDistance( startDistance, stopDistance )
Availability: Client only
Parameters:
| Name | Type | Description |
|---|---|---|
effect |
Effect | The effect. |
startDistance |
number | The distance when effect will start |
stopDistance |
number | The distance when effect will stop |