Skip to content
On this page

AthenaClient.world.position

Functions

getGroundZ

Usage

AthenaClient.world.position.getGroundZ(pos, options?): alt.IVector3

Returns a Vector3 with a modified z position if the ground position is found.

Otherwise, returns the original Vector3.

Parameters

NameTypeDefault valueDescription
posIVector3undefinedA position in the world.
options?ObjectDefaultData
options.incrementnumber1-
options.iterationsnumber10-
options.minStartnumber5-

Returns

alt.IVector3

Defined in

client/world/position.ts:21


isEntityBlockingPosition

Usage

AthenaClient.world.position.isEntityBlockingPosition(pos, range?, maxDistance?): boolean

Check if an entity is in front of the position the camera is looking at. Should be used periodically and not in an every tick. Could be expensive.

Parameters

NameTypeDefault value
posIVector3undefined
rangenumber0.8
maxDistancenumber100

Returns

boolean

Defined in

client/world/position.ts:43

Created by Stuyk | Est. 2020