Browsing StarfallEx's section
โ† Back to ACE
Back to StarfallEx

SFEX.find.inCone

S๐Ÿท๏ธ Find

Part of StarfallEx namespace

๐Ÿ”— External
find.inCone(pos, dir, distance, radius, filter)
View on GitHub|lua/starfall/libs_sh/find.lua:98
๐Ÿ“‹ Has LDoc๐Ÿ‘๏ธ 0 viewsUpdated 2 months ago

Description

Finds entities in a cone

Parameters

NameTypeDescription
posVectorThe cone vertex position
dirVectorThe direction to project the cone
distancenumberThe length to project the cone
radiusnumberThe cosine of angle of the cone. 1 makes a 0ยฐ cone, 0.707 makes approximately 90ยฐ, 0 makes 180ยฐ, and so on.
filter?functionOptional function to filter results

Returns

TypeDescription
tableAn array of found entities

Examples

No examples available.

Used In

No usages found in the codebase.