fsVfxIsInstancePlaying

The fsVfxIsInstancePlaying function is used to check if a given (previously spawned) VFX instance is currently playing or not. 

 

Syntax
bool fsVfxIsInstancePlaying(
    FsVFXId id
);

 

Members
Parameters Description
id The ID of the VFX to check, as returned by either fsVfxSpawnInWorld or fsVfxSpawnOnSimObject.

Return Values

The function will return TRUE if the VFX is currently playing, otherwise it weill return FALSE. It may also return FALSE if the vfx was destroyed.

 

Example
if (!fsVfxIsInstancePlaying(vfxId)) {
    fsVfxPlayInstance(vfxId);
}

 

Remarks

N/A

 

See Also