ObjectClient

getRayfireMapObjectAnimPhase

GET_RAYFIRE_MAP_OBJECT_ANIM_PHASE0x260EE4FDBDF4DB01

The GTA V native GET_RAYFIRE_MAP_OBJECT_ANIM_PHASE of the OBJECT namespace, as LS:MP client scripts call it: the global function getRayfireMapObjectAnimPhase, in JavaScript and in Lua.

SignatureJavaScript
getRayfireMapObjectAnimPhase(object: Object): number
SignatureLua
getRayfireMapObjectAnimPhase(object: Object): number

Usage

JavaScript
const value = getRayfireMapObjectAnimPhase(object);
Lua
local value = getRayfireMapObjectAnimPhase(object)

Parameters

ParameterTypeJavaScriptLua
objectObjectnumberinteger

Returns

float JavaScript number, Lua number

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

object: The des-object handle to get the animation progress from.
Return value is a float between 0.0 and 1.0, 0.0 is the beginning of the animation, 1.0 is the end. Value resets to 0.0 instantly after reaching 1.0.

Reference

Namespace
Object OBJECT
In the game
float GET_RAYFIRE_MAP_OBJECT_ANIM_PHASE(Object object)
Hash
0x260EE4FDBDF4DB01
Formerly
_GET_DES_OBJECT_ANIM_PROGRESS

Open in the interactive natives reference