SlashCo Wiki

Entity:LocalRandomPosition

 Vector Entity:LocalRandomPosition( number minRange, number range = minRange, number offset = 0 )

Description

Since its creation this function never worked properly due to it never returning the value!
Get a position near an entity that it can be near.
Internally just calls SlashCo.LocalizedTraceHullLocator

Arguments

1number minRange

minimum distance away

2number range = minRange

maximum distance away
If range is unspecified, minRange becomes the range value and the minimum range becomes 25

3number offset = 0

offset the center of the search this many units way from the entity in the direction they are looking

Returns

1Vector randomPos

A found random position or nil on failure