11 [
Attribute(defvalue:
"1",
desc:
"Time after which the particle effect freezes",
params:
"0 inf")]
16 protected bool m_bInitialised;
17 protected float m_fDuration;
21 protected static ref set<ParticleEffectEntity> s_PlayingParticles =
new set<ParticleEffectEntity>();
26 m_bInitialised =
true;
37 entitySpawnParams.Parent =
this;
51 protected void PauseParticle()
58 s_PlayingParticles.RemoveItem(null);
60 if (s_PlayingParticles.IsEmpty())
61 Print(
"[SCR_CinematicParticleSourceEntity] Particle scene is ready (all particles are paused)",
LogLevel.NORMAL);
65 protected void ResetParticle()
82 m_fDuration -= timeSlice;
102 override event void _WB_OnInit(inout vector mat[4], IEntitySource src)
117 m_fDuration -= timeSlice;
118 if (m_fDuration <= 0)
125 return EEntityFrameUpdateSpecs.CALL_ALWAYS;
130 void SCR_CinematicParticleSourceEntity(IEntitySource src,
IEntity parent)
137 void ~SCR_CinematicParticleSourceEntity()
ArmaReforgerScripted GetGame()
IEntity SpawnEntity(ResourceName entityResourceName, notnull IEntity slotOwner)
enum SCR_ECompassType EntityEditorProps(category:"GameScripted/Gadgets", description:"Compass", color:"0 0 255 255")
Prefab data class for compass component.
void ParticleEffectEntity(IEntitySource src, IEntity parent)
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
ParticleEffectEntity m_ParticleEffectEntity
enum EVehicleType IEntity
event void _WB_AfterWorldUpdate(float timeSlice)
Called after updating world in Workbench. The entity must be visible in frustum, selected or named....
event int _WB_GetAfterWorldUpdateSpecs(IEntitySource src)
Called after _WB_OnInit or also later when editor needs to know whether _WB_AfterWorldUpdate needs to...
event void _WB_OnInit(inout vector mat[4], IEntitySource src)
Called always after entity creation. It's purpose is to prepare entity for editing....
event void _WB_SetTransform(inout vector mat[4], IEntitySource src)
Editor changed transformation matrix source. This is the place to apply it on entity....
proto external EntityEvent SetEventMask(EntityEvent e)
proto external vector GetAngles()
Same as GetYawPitchRoll(), but returns rotation vector around X, Y and Z axis.
proto external vector GetOrigin()
void EOnFrame(IEntity owner, float timeSlice)
proto external EntityEvent ClearEventMask(EntityEvent e)
proto external BaseWorld GetWorld()
proto void Print(void var, LogLevel level=LogLevel.NORMAL)
Prints content of variable to console/log.
LogLevel
Enum with severity of the logging message.
SCR_FieldOfViewSettings Attribute
EntityEvent
Various entity events.