Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
vehiclesmoke.c
Go to the documentation of this file.
2 {
3  void EffVehicleSmoke()
4  {
5  SetParticleStateLight();
6  }
7 
8 
9  void SetParticleStateLight()
10  {
11  SetParticleState( ParticleList.HATCHBACK_COOLANT_OVERHEATING );
12  }
13 
14 
15  void SetParticleStateHeavy()
16  {
17  SetParticleState( ParticleList.HATCHBACK_COOLANT_OVERHEATED );
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 }
EffVehicleSmoke
Definition: vehiclesmoke.c:1
EffectParticle
Wrapper class for managing particles through SEffectManager.
Definition: effectparticle.c:4
ParticleList
Definition: particlelist.c:11
IsPlaying
bool IsPlaying()
Returns true when the Effect is playing, false otherwise.
Definition: effect.c:193
Start
void Start()
Plays all elements this effects consists of.
Definition: effect.c:153
Stop
void Stop()
Stops all elements this effect consists of.
Definition: effect.c:179