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 given instance exists and is currently playing, otherwise it will return FALSE.

 

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

 

Remarks

N/A