| Timer doesn't work, I think... ? 
 
				So uh.... yeah, Im having like 2 scriptareas who have a timer on them that will trigger a windgust a little bit after a collapse.... the "ParticleSystem1" script goes off as soon as I go into the map, but I want it to go off after the "ParticleSystem" script... Please help?
 anyway, here is the script:
 
 void break_stairs(string &in asTimer)
 {
 PlaySoundAtEntity("KitchenNoise", "break_stairs.snt", "Collapse", 1, true);
 AddTimer("", 2.0f, "ParticleSystem");
 }
 
 void ParticleSystem(string &in asTimer)
 {
 CreateParticleSystemAtEntity("Gust", "ps_dust_push.ps", "Tornado", false);
 SetLampLit("torch_static01_3", false, true);
 SetLampLit("chandelier_nice_2", false, true);
 SetEntityActive("PointLight_8", false);
 SetLightVisible("SpotLight_11", false);
 AddTimer("", 2.0f, "ParticleSystem1");
 }
 
 void ParticleSystem1(string &in asTimer)
 {
 CreateParticleSystemAtEntity("Gust", "ps_dust_push.ps", "Gust", false);
 SetLampLit("torch_static01_4", false, true);
 SetLampLit("torch_static01_5", false, true);
 SetLampLit("torch_static01_6", false, true);
 SetLampLit("chandelier_nice_3", false, true);
 SetEntityActive("PointLight_9", false);
 SetLightVisible("SpotLight_21", false);
 SetLightVisible("SpotLight_27", false);
 }
 
 
 Current Project: Depths of Shadows(Mapper)
 |