Effect.setStartStopDistance

Sets an effect to stop and restart depending on distance to the player.

Kind: Function

Environments: Game

Game

effect:setStartStopDistance( startDistance, stopDistance )

Open the full Game reference

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