SlashCo Wiki

SlashCo.LocalizedTraceHullLocator

 Vector SlashCo.LocalizedTraceHullLocator( Entity ent, number minRange, number range = minRange, number offset = 0 )

Description

Get a position near an entity that it can be near.
Internally just calls SlashCo.LocalizedTraceHullLocator

Arguments

1Entity ent

entity to use as centery

2number minRange

minimum distance away

3number range = minRange

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

4number 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