On this page
fsVfxSetWorldPosition
The fsVfxSetWorldPosition function set the latitude, longitude and altitude of the VFX instance.
IMPORTANT!
This function can only be used for VFX instances spawned in world using fsVfxSpawnInWorld.
Syntax
bool fsVfxSetWorldPosition(
FsVfxId id,
FsVec3d newLla
);Members
| Parameters | Description |
|---|---|
id | The ID of the VFX to set the position in the world of, as returned by fsVfxSpawnInWorld. |
newLla | An array of three values representing the position in the world along the latitude, longitude and altitude axis. |
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(vfxId, lla);Remarks
N/A
