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
Destroy particle system
Lake Offline
Member

Posts: 58
Threads: 20
Joined: Jul 2012
Reputation: 0
#1
Destroy particle system

I put it on the map 6 Particle system, when in the game if the game develops an action I ordered this:

DestroyParticleSystem ("ParticleSystem_1.ps");
DestroyParticleSystem ("ParticleSystem_2.ps");
DestroyParticleSystem ("ParticleSystem_3.ps");
DestroyParticleSystem ("ParticleSystem_4.ps");
DestroyParticleSystem ("ParticleSystem_5.ps");
DestroyParticleSystem ("ParticleSystem_6.ps");

the problem is that you do not disable the PS .... why?
09-07-2012, 07:57 PM
Find
i3670 Offline
Posting Freak

Posts: 1,308
Threads: 74
Joined: Oct 2011
Reputation: 36
#2
RE: Destroy particle system

CreateParticleSystemAtEntity(string& asPSName, string& asPSFile, string& asEntity, bool abSavePS);

DestroyParticleSystem(string& asName);

Those two got to be the same

"What you think is irrelevant" - A character of our time

A Christmas Hunt
09-07-2012, 08:03 PM
Find
Lake Offline
Member

Posts: 58
Threads: 20
Joined: Jul 2012
Reputation: 0
#3
RE: Destroy particle system

(09-07-2012, 08:03 PM)i3670 Wrote: CreateParticleSystemAtEntity(string& asPSName, string& asPSFile, string& asEntity, bool abSavePS);

DestroyParticleSystem(string& asName);

Those two got to be the same
so you can not destroy the particle system made ​​in prior already in the map?
09-07-2012, 08:04 PM
Find
i3670 Offline
Posting Freak

Posts: 1,308
Threads: 74
Joined: Oct 2011
Reputation: 36
#4
RE: Destroy particle system

I don't think so. I am not that skilled with particle systems though, but I think I'm right.

"What you think is irrelevant" - A character of our time

A Christmas Hunt
09-07-2012, 08:07 PM
Find
Robby Offline
Posting Freak

Posts: 2,549
Threads: 38
Joined: Jun 2009
Reputation: 47
#5
RE: Destroy particle system

Let's say there is a particle system in a level called "SteamCloud". It is active, set through the Level Editor.

Using the
DestroyParticleSystem("SteamCloud");
function, it should work. If not, I dunno. But I think I tried something similar and I think it worked. Try this.

Replace "SteamCloud" with the name of the particle system that you want to destroy.

Infrequently active. Don't expect an immediate response. Best to contact me at a different locale. If I create a thread, expect me to be quite active.
(This post was last modified: 09-07-2012, 08:26 PM by Robby.)
09-07-2012, 08:26 PM
Website Find




Users browsing this thread: 2 Guest(s)