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
[URGENT] Destroying Particle Systems
JenniferOrange Offline
Senior Member

Posts: 424
Threads: 43
Joined: Jun 2011
Reputation: 33
#3
RE: [URGENT] Destroying Particle Systems

Nope, the particle system just stays there. Here's the script:
Spoiler below!
void OnStart()
{
SetEntityPlayerInteractCallback("special_burner_1", "Fire", false);
AddUseItemCallback("", "mix_notdone_1", "special_burner_1", "Boil", true);
}
void Fire(string &in asEntity)
{
CreateParticleSystemAtEntity("", "ps_fire_lab_burner.ps", "funnel_1", false);
CreateParticleSystemAtEntity("", "ps_bubbles.ps", "funnel_2", false);
AddTimer("MakeMix", 5, "Finished");
}
void Boil(string &in asItem, string &in asEntity)
{
SetEntityActive("mix_notdone_static_1", true);
RemoveItem("mix_notdone_1");
}
void Finished(string &in asTimer)
{
SetEntityActive("mix_notdone_static_1", false);
SetEntityActive("mix_done_1", true);
DestroyParticleSystem("ps_bubbles");
}

void OnEnter()
{

}

void OnLeave()
{

}



ps_bubbles is what I'm trying to destroy.

Ba-da bing, ba-da boom.
01-01-2012, 03:10 AM
Find


Messages In This Thread
RE: [URGENT] Destroying Particle Systems - by JenniferOrange - 01-01-2012, 03:10 AM



Users browsing this thread: 1 Guest(s)