DayZ Scripts
v1.21.156300 ยท Jun 20, 2023
 
Loading...
Searching...
No Matches
VehicleSmoke.c
Go to the documentation of this file.
2{
4 {
6 }
7
8
10 {
12 }
13
14
16 {
18 }
19
20 void SetParticleState( int state )
21 {
22 bool was_playing = IsPlaying();
23
24 Stop();
25
26 SetParticleID(state);
27
28 if (was_playing)
29 {
30 Start(); // resume effect
31 }
32 }
33}
bool IsPlaying()
Returns true when the Effect is playing, false otherwise.
Definition Effect.c:193
void SetParticleState(int state)
void SetParticleStateHeavy()
void EffVehicleSmoke()
Definition VehicleSmoke.c:3
void SetParticleStateLight()
Definition VehicleSmoke.c:9
Wrapper class for managing particles through SEffectManager.
void SetParticleID(int id)
Sets the id of the particle to be used.
override void Start()
Plays all elements this effect consists of.
override void Stop()
Stops all elements this effect consists of.
static const int HATCHBACK_COOLANT_OVERHEATED
static const int HATCHBACK_COOLANT_OVERHEATING