SlashCo Wiki

SlashCo.IsPositionLegalForSlashers

 boolean SlashCo.IsPositionLegalForSlashers( Vector pos, boolean noSurvivorCheck, number distFactor = 1 )

Description

Returns whether a position is far enough away from all survivors to be considered a legal spot for a slasher to use, for example when picking a teleport or ability position.
The required distance scales with SlashCo.GetMapSize.

Arguments

1Vector pos

The position to check

2boolean noSurvivorCheck

If true, skips the distance check against survivors and always returns true

3number distFactor = 1

Multiplier applied to the base distance requirement

Returns

1boolean legal

Whether the position is legal for slashers to use