80 identifier =
"NO_PARTICLE";
260 AddAsChild(obj, local_pos, local_ori, force_rotation_to_world);
280 p.
AddAsChild(obj, local_pos, local_ori, force_rotation_to_world);
382 super.SetCurrentParent(parent_obj, updateCached);
396 return Object.Cast(p.GetParent());
398 return super.GetParent();
408 super.SetCurrentPosition(pos, updateCached);
425 return p.GetPosition();
427 return super.GetPosition();
437 super.SetCurrentLocalPosition(pos, updateCached);
464 return parent.WorldToModel(p.GetPosition());
466 return p.GetPosition();
469 return super.GetLocalPosition();
504 p.SetOrientation(ori);
516 return p.GetOrientation();
560 return p.IsHierarchyPositionOnly();
591 return p.IsHierarchyPositionOnly();
651class ParticleParamsOverrideData
Object m_ParentObject
Cached parent.
void SetParent(Object parent_obj, int pivot)
Set parent of the Effect.
ref ScriptInvoker Event_OnEffectStarted
Event used when the actual effect started playing.
EffectType
Enum to determine what type of effect the Effect is.
ref ScriptInvoker Event_OnEffectEnded
Event used when the actual effect stopped playing.
void SetLocalPosition(vector pos)
Set the local position of the Effect.
vector GetLocalPosition()
Get the local position of the Effect.
ref ScriptInvoker Event_OnStopped
Event used when Stop was called.
void SetAttachedLocalOri(vector ori)
Set local orientation for the Effectparticle to attach to when the Effect is started.
vector GetAttachedLocalOri()
Get the local orientation set by SetAttachedLocalOri.
EffectParticle m_FloatModifiers
void ParticleManager(ParticleManagerSettings settings)
Constructor (ctor)
override string GetDebugName()
Override when getting debug information.
override void Stop()
Stops all elements this effect consists of.
Particle GetParticle()
Gets the main particle which this Effect is managing.
int GetCurrentParticleID()
Gets the current id of the managed Particle.
vector GetOrientation()
Get the orientation of the EffectParticle.
override void Start()
Plays all elements this effect consists of.
void AddParticlePropertiesFlag(ParticlePropertiesFlags flag)
void ~EffectParticle()
dtor
void SetParticleID(int id)
Sets the id of the particle to be used.
void SetParticle(Particle p)
Sets the main particle which this Effect will manage.
void Event_OnPlayStarted()
Event which just simply exists (DEPRECATED)
override void ValidateStart()
Validation whether an effect truly started playing or if the Effect should stop as none is present.
void DisableParticleInUI(bool disable)
Disable creating particle for preview player.
void SelectFromSurface(SurfaceInfo surfaceInfo)
void EffectParticle()
ctor
void RemoveParticlePropertiesFlag(ParticlePropertiesFlags flag)
void SetCurrentOrientation(vector ori, bool updateCached=true)
Set the current orientation of the managed Particle.
int GetParticleID()
Gets the id of the particle to be used.
override void InitEffect()
init
vector GetCurrentOrientation()
Get the current orientation of the managed Particle.
bool IsParticleRotationRelativeToWorld()
Get the orientation setting to be used by the effect when the Effect starts.
EffectSound m_EffectSound
Name of sound set that is going to be played when particle starts playback.
Particle m_ParticleObj
The main Particle effect that this Effect wrapper manages.
void ReAttach()
Helper method to attach to parent using stored settings.
override Object GetCurrentParent()
Get the current parent of the managed Particle.
override void SetCurrentPosition(vector pos, bool updateCached=true)
Set the current world position of the managed Particle.
vector m_ParticleOrientation
void SetDecalOwner(Object o)
void Event_OnPlayStart()
Event which just simply exists (DEPRECATED)
override bool IsParticle()
Check whether the Effect is EffectParticle without casting.
void SelectFromSurface(string surface)
Selection of particle based on Surface.
override void SetCurrentParent(Object parent_obj, bool updateCached=true)
Set current parent of the managed Particle.
void ForceParticleRotationRelativeToWorld(bool state)
Set orientation setting to be used by the effect when the Effect starts.
override EffectType GetEffectType()
Get what type of effect the Effect is.
void AttachTo(Object obj, vector local_pos="0 0 0", vector local_ori="0 0 0", bool force_rotation_to_world=false)
Read Particle.AddAsChild.
bool IsParticleCurrentRotationRelativeToWorld()
Get the current orientation setting to be used by the managed Particle.
void AddAsChild(Object obj, vector local_pos, vector local_ori, bool force_rotation_to_world)
Helper method to attach to parent.
override vector GetCurrentPosition()
Get the current world position of the managed Particle.
bool IsSetParticlePropertiesFlag(ParticlePropertiesFlags flag)
void SetOrientation(vector ori)
Set orientation of the EffectParticle.
bool IsDisableParticleInUI()
override vector GetCurrentLocalPosition()
Get the current local position of the managed Particle.
void SetParticleState(int state)
int m_PPFlags
Flags passed to ParticleManager.CreateParticleEx when the particle is created, see ParticleProperties...
int m_ParticleID
The ID in the ParticleList to create Particle from.
void SetEffectSound(EffectSound effectSound)
Set effect sound play with particle.
override void SetCurrentLocalPosition(vector pos, bool updateCached=true)
Set the current local position of the managed Particle.
void SetCurrentParticleID(int id)
Sets the id of the particle to be used.
vector m_Orientation
Orientation set by SetOrientation.
void ParticleParamsOverride(notnull ParticleParamsOverrideData data)
Callback for overriding effect's particle attributes.
void CheckLifeSpan()
Was never called and probably should never be called.
Wrapper class for managing sound through SEffectManager.
void SetSource(int particle_id)
Sets particle id.
void AddAsChild(Object parent, vector local_pos="0 0 0", vector local_ori="0 0 0", bool force_rotation_to_world=false)
Attaches this particle onto some object. If null value is provided then the particle will be detached...
int GetParticleID()
Gets particle id.
void Stop()
Legacy function for backwards compatibility with 1.14 and below.
ref ScriptInvoker Event_OnParticleStart
Called when particle starts playing.
ref ScriptInvoker Event_OnParticleStop
Called when particle stops playing.
Invokers for ParticleBase events, called from events.
Legacy way of using particles in the game.
static int PlayOnObject(notnull Effect eff, Object obj, vector local_pos="0 0 0", vector local_ori="0 0 0", bool force_rotation_relative_to_world=false)
Play an Effect.
static bool DestroySound(EffectSound sound_effect)
Legacy, backwards compatibility.
Manager class for managing Effect (EffectParticle, EffectSound)
proto bool Remove(func fn, int flags=EScriptInvokerRemoveFlags.ALL)
remove specific call from list
proto bool Insert(func fn, int flags=EScriptInvokerInsertFlags.IMMEDIATE)
insert method to list
array< float > TFloatArray
vector GetPosition()
Get the world position of the Effect.
static proto string Format(string fmt, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
Gets n-th character from string.