class EffectSource
Effect › Managed
View all 53 descendants
- EffectParticle
- BleedingSourceEffect
- BleedingSourceEffectLight
- BloodSplatter
- EffBreathVapourHeavy
- EffBreathVapourLight
- EffBreathVapourMedium
- EffBulletImpactBase
- EffBulletImpactTest
- EffectBoatWaterBase
- EffectParticleGeneral
- EffGeneratorSmoke
- EffSwarmingFlies
- EffVehicleSmoke
- EffVomit
- EffVomitBlood
- EffWheelSmoke
- LandmineExplosion
- MenuCarEngineSmoke
- MenuEvaporation
- EffectSound
All members, including inherited
Constructors 2
void Effect()ctor
void ~Effect()dtor
Show 2 more
, SetEnableEventFrame(), and Stop()Members 14
ref ScriptInvoker Event_OnStarted = new ScriptInvoker()\name Event invokers ScriptInvonkers for certain events
ref ScriptInvoker Event_OnStopped = new ScriptInvoker()Show 1 more
, EffectSound.InitEffect()ref ScriptInvoker Event_OnEffectStarted = new ScriptInvoker()Show 1 more
, EffectSound.InitEffect()ref ScriptInvoker Event_OnEffectEnded = new ScriptInvoker()protected bool m_IsPendingDeletionWhether the Destroy process has already been called
protected bool m_IsPlayingWhether the Effect is currently playing
Show 2 more
, IsPlaying(), and EffectSound.SoundReset()protected Object m_ParentObjectCached parent
Show 3 more
, EffectSound.GetCurrentPosition(), EffectSound.SoundLoadEx(), and EffectSound.SoundPlayEx()protected int m_PivotIndex = -1Cached parent pivot id
Show 1 more
, EffectSound.SoundPlayEx()protected int m_IDID of effect, given by SEffectManager when registered (automatically done when playing through it)
protected bool m_IsRegisteredWhether the effect is registered in SEffectManager
protected vector m_LocalPosCached local pos
protected vector m_LocalOriLocal orientation set by SetAttachedLocalOri, only used by EffectParticle
Methods 45
void InitEffect()init
Show 3 more
, Event_OnEffectStarted, Event_OnStarted, and Event_OnStoppedEffectType GetEffectType()Get what type of effect the Effect is
Returns: EffectType What type of effect the Effect is
bool IsSound()Check whether the Effect is EffectSound without casting
Returns: bool Whether the Effect is EffectSound
bool IsParticle()Check whether the Effect is EffectParticle without casting
Returns: bool Whether the Effect is EffectParticle
void Start()Plays all elements this effects consists of
Show 1 more
, SEffectManager.PlayOnObject()void ValidateStart()Validation whether an effect truly started playing or if the Effect should stop as none is present
void Stop()Stops all elements this effect consists of
bool IsPlaying()Returns true when the Effect is playing, false otherwise
Show 10 more
, Stop(), EffectBoatWaterBack.Update(), EffectBoatWaterBase.SetParticleState(), EffectBoatWaterBase.Update(), EffectBoatWaterFront.Update(), EffectParticleGeneral.SetParticle(), EffVehicleSmoke.SetParticleState(), EffWheelSmoke.SetParticleState(), ParticleEffecter.OnVariablesSynchronized(), and TreeEffecter.OnVariablesSynchronized()protected void Destroy()Cleans up the Effect, including unregistering if needed
Show 2 more
, Stop(), and m_IsPendingDeletionvoid SetAutodestroy(bool auto_destroy)Sets whether Effect automatically cleans up when it stops
auto_destroyboolWhether Effect automatically cleans up when it stops
bool IsAutodestroy()Get whether Effect automatically cleans up when it stops
Returns: bool Whether Effect automatically cleans up when it stops
bool IsPendingDeletion()Get whether the Effect is queued up for being cleaned up
Returns: bool Whether the Effect is queued up for being cleaned up
bool CanDestroy()Get whether the Effect can be destroyed right now
Returns: bool Whether the Effect can be destroyed right now
void SetEnableEventFrame(bool enable)Enable Event_OnFrameUpdate for the effect
void Event_OnEffectStarted()Event used when the actual effect started playing
void Event_OnEffectEnded()Event used when the actual effect stopped playing
Show 2 more
, Event_OnEffectEnded, and m_IsPlayingvoid Event_OnFrameUpdate(float time_delta)Event called on frame when enabled by SetEnableEventFrame(true)
time_deltafloatTime passed since the previous frame
void Event_OnRegistered(int id)Event called from SEffectManager when the Effect is registered
idintID registered in SEffectManager
void Event_OnUnregistered()Event called from SEffectManager when the Effect is unregistered
void OnCheckUpdate()Event used when EffectParticle.CheckLifeSpan was called (DEPRECATED)
Set parent of the Effect
parent_objObjectThe parentpivotintThe pivot index
Show 2 more
, EffectSound.SetParent(), and SEffectManager.PlayOnObject()void SetParent(Object parent_obj)Set parent of the Effect
Show 2 more
, EffectSound.SetParent(), and SEffectManager.PlayOnObject()Object GetParent()Get parent of the Effect
Returns: Object The parent of the Effect
int GetPivotIndex()Get parent pivot of the Effect, only valid when there is some GetParent
Returns: int The parent pivot of the Effect
Set current parent of the managed effect
Object GetCurrentParent()void SetPosition(vector pos)Set the world position of the Effect
posvectorThe world position for the Effect
vector GetPosition()Get the world position of the Effect
Returns: vector The world position of the Effect
Set the current world position of the managed effect
posvectorThe current world position for the EffectupdateCachedboolWhether to update the cached variable
vector GetCurrentPosition()Get the current world position of the managed effect
Returns: vector The current world position of the managed effect
void SetLocalPosition(vector pos)Set the local position of the Effect
posvectorThe local position for the Effect
vector GetLocalPosition()Get the local position of the Effect
Returns: vector The lcoal position of the Effect
Set the current local position of the managed effect
posvectorThe current local position for the managed effectupdateCachedboolWhether to update the cached variable
vector GetCurrentLocalPosition()Get the current local position of the managed effect
Returns: vector The current local position of the managed effect
protected void SetID(int id)Set the ID registered in SEffectManager
idintID registered in SEffectManager
int GetID()Get the ID registered in SEffectManager
Returns: int ID registered in SEffectManager, or 0 (SEffectManager.INVALID_ID) when not registered
bool IsRegistered()Get whether this Effect is registered in SEffectManager
Returns: bool Whether this Effect is registered in SEffectManager
void SetAttachmentParent(Object obj)Object GetAttachmentParent()Get the parent set by SetAttachmentParent
Returns: Object The parent set by SetAttachmentParent
void SetAttachedLocalPos(vector pos)Set local pos for the Effect relative to the parent
posvectorThe local pos relative to the parent
vector GetAttachedLocalPos()Get the local pos set by SetAttachedLocalPos
Returns: vector The local pos set by SetAttachedLocalPos
void SetAttachedLocalOri(vector ori)Set local orientation for the Effectparticle to attach to when the Effect is started
orivectorThe local orientation to use on Start
vector GetAttachedLocalOri()Get the local orientation set by SetAttachedLocalOri
Returns: vector The local orientation set by SetAttachedLocalOri