The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Timer doesn't work, I think... ?
Lontasm Offline
Junior Member

Posts: 27
Threads: 7
Joined: Feb 2011
Reputation: 0
#1
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)
11-08-2011, 06:57 PM
Find


Messages In This Thread
Timer doesn't work, I think... ? - by Lontasm - 11-08-2011, 06:57 PM
RE: Timer doesn't work, I think... ? - by Statyk - 11-08-2011, 07:08 PM
RE: Timer doesn't work, I think... ? - by Lontasm - 11-08-2011, 07:17 PM
RE: Timer doesn't work, I think... ? - by Khyrpa - 11-08-2011, 07:49 PM



Users browsing this thread: 1 Guest(s)