SlashCo Wiki

SlashCo.LocalizedTraceHullLocatorAdvanced

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

Description

We advise against using this. It may be changed or removed in a future update. Use the new version SlashCo.LocalizedTraceHullLocator

Alias of 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