DayZ 1.24
Loading...
Searching...
No Matches
DynamicArea_Flare Class Reference
Inheritance diagram for DynamicArea_Flare:
[legend]
Collaboration diagram for DynamicArea_Flare:
[legend]

Private Member Functions

void DynamicArea_Flare ()
 
override void EOnFrame (IEntity other, float timeSlice)
 
override void EEDelete (EntityAI parent)
 

Private Attributes

const float FALL_SPEED = 0.5
 
const float LIFETIME = 40000
 
Particle m_Particle
 

Detailed Description

Definition at line 2 of file DynamicArea_Flare.c.

Constructor & Destructor Documentation

◆ DynamicArea_Flare()

void DynamicArea_Flare::DynamicArea_Flare ( )
inlineprivate

Definition at line 7 of file DynamicArea_Flare.c.

8 {
9 SetEventMask(EntityEvent.FRAME);
10 SetFlags(EntityFlags.ACTIVE, false);
11
12 // We create the particle effect
13 m_Particle = ParticleManager.GetInstance().PlayOnObject(ParticleList.FLAREPROJ_ACTIVATE_RED, this);
14
15 // We specify we will delete this object after set time
16 GetGame().GetCallQueue(CALL_CATEGORY_SYSTEM).CallLater(GetGame().ObjectDeleteOnClient, LIFETIME, false, this);
17 }
void ParticleManager(ParticleManagerSettings settings)
Constructor (ctor)
static const int FLAREPROJ_ACTIVATE_RED
proto native CGame GetGame()
proto native void SetFlags(ShapeFlags flags)
EntityEvent
Entity events for event-mask, or throwing event from code.
Definition EnEntity.c:44
EntityFlags
Entity flags.
Definition EnEntity.c:114
const int CALL_CATEGORY_SYSTEM
Definition tools.c:8

References CALL_CATEGORY_SYSTEM, ParticleList::FLAREPROJ_ACTIVATE_RED, GetGame(), LIFETIME, m_Particle, ParticleManager(), and SetFlags().

Member Function Documentation

◆ EEDelete()

override void DynamicArea_Flare::EEDelete ( EntityAI parent)
inlineprivate

Definition at line 28 of file DynamicArea_Flare.c.

29 {
30 if (m_Particle)
32 }
void Stop()
Legacy function for backwards compatibility with 1.14 and below.
Definition Particle.c:262

References m_Particle, and Particle::Stop().

◆ EOnFrame()

override void DynamicArea_Flare::EOnFrame ( IEntity other,
float timeSlice )
inlineprivate

Definition at line 20 of file DynamicArea_Flare.c.

21 {
23 newPos[1] = newPos[1] - (FALL_SPEED * timeSlice);
25 }
class JsonUndergroundAreaTriggerData GetPosition
proto native void SetPosition(vector position)
Set the world position of the Effect.
Definition Effect.c:420

References FALL_SPEED, GetPosition, and SetPosition().

Member Data Documentation

◆ FALL_SPEED

const float DynamicArea_Flare::FALL_SPEED = 0.5
private

Definition at line 4 of file DynamicArea_Flare.c.

Referenced by EOnFrame().

◆ LIFETIME

const float DynamicArea_Flare::LIFETIME = 40000
private

Definition at line 5 of file DynamicArea_Flare.c.

Referenced by DynamicArea_Flare().

◆ m_Particle

Particle DynamicArea_Flare::m_Particle
private

Definition at line 6 of file DynamicArea_Flare.c.

Referenced by DynamicArea_Flare(), and EEDelete().


The documentation for this class was generated from the following file: