The fsVfxSetWorldPosition function sets the latitude, longitude and altitude of the VFX instance.

IMPORTANT!

This function can only be used for a VFX instances spawned in the world using fsVfxSpawnInWorld.

Syntax
bool fsVfxSetWorldPosition_EX1(
    FsVfxId id,
    FsVec3d newLla,
    eFsWorldReference ref = FsWorldReferenceEllispoid
);
Members
ParametersDescription
idThe ID of the VFX to set the position in the world of, as returned fsVfxSpawnInWorld.
newLlaAn array of three values representing the position in the world along the latitude, longitude and altitude axis.
refThe world referential in which the VFX will be placed, used to compute the height.The default value is : eFsWorldReferenceEllipsoid
Return Values

The function will return TRUE if the given ID exists and is a valid VFX instance, otherwise it will return FALSE.

Example
FsVec3d lla = { 36.151591, -5.340841, 58.154 };
fsVfxSetWorldPosition_EX1(vfxId, lla, FsWorldReferenceGeoid);
Remarks

N/A

0/255