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
CreateParticleSystem not working
Damascus Offline
Senior Member

Posts: 646
Threads: 118
Joined: Mar 2012
Reputation: 29
#1
CreateParticleSystem not working

I've created a ScriptArea that i want to produce a whirl of dust. When the player completes a puzzle, they hear a roar in the distance, and a whirl of dust blows out the nearby torches. I've called the ScriptArea "WhirlArea," and here's the script I have set up:

Spoiler below!

(at the end of the function that solves the puzzle)
AddTimer("groan", 5, "Timer_Machine1");
AddTimer("whirl", 5.5, "Timer_Machine1");
AddTimer("lightsout", 6, "Timer_Machine1");

void Timer_Machine1(string &in asTimer)
{
if(asTimer == "groan")
{
PlaySoundAtEntity("", "11_guardian_idle", "GroanArea", 2.0f, false);
}
else if(asTimer == "whirl")
{
CreateParticleSystemAtEntity("", "ps_dust_whirl", "AreaWhirl", false);
}
else if(asTimer == "lightsout")
{
SetLampLit("torch_static01_29", false, true);
SetLampLit("torch_static01_30", false, true);
FadeLightTo("PointLight_14", 0, 0, 0, 0, 0, 1);
}
}


The sound plays, and the lights go out, but there is no whirl of dust. Any reason why this might be happening?

(This post was last modified: 03-16-2012, 09:46 AM by Damascus.)
03-16-2012, 08:59 AM
Find


Messages In This Thread
CreateParticleSystem not working - by Damascus - 03-16-2012, 08:59 AM
RE: CreateParticleSystem not working - by Equil - 03-16-2012, 09:03 AM
RE: CreateParticleSystem not working - by Equil - 03-16-2012, 09:43 AM
RE: CreateParticleSystem not working - by Equil - 03-16-2012, 09:48 AM



Users browsing this thread: 1 Guest(s)