On this page
fsVfxSetWorldPosition_EX1
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
| Parameters | Description |
|---|---|
id | The ID of the VFX to set the position in the world of, as returned fsVfxSpawnInWorld. |
newLla | An array of three values representing the position in the world along the latitude, longitude and altitude axis. |
ref | The 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
