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


Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[LVL EDITOR/SCRIPT HELP] Particle Systems
No Author Offline
Posting Freak

Posts: 962
Threads: 10
Joined: Jun 2012
Reputation: 13
#1
[LVL EDITOR/SCRIPT HELP] Particle Systems

Hey guys !
I was just wondering, is it possible to make a particle system disappear or gone (Un-active) ?

Ex : The light dust or the area fog or water streams. The loop particle system I'm talking about.

Does it have to do in the level editor or in the script ?

Oh yeah, can you guys make it a simple one if it's possible ?

English isn't my first language. So I hope you'll understand.

[Image: the-cabin-in-the-woods-masked-people.jpg]
02-10-2013, 01:11 PM
Find
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#2
RE: [LVL EDITOR/SCRIPT HELP] Particle Systems

In the script. Just:

DestroyParticleSystem("Nameofparticle");

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
02-10-2013, 01:24 PM
Find
No Author Offline
Posting Freak

Posts: 962
Threads: 10
Joined: Jun 2012
Reputation: 13
#3
RE: [LVL EDITOR/SCRIPT HELP] Particle Systems

Can I make the particle system active again ?

[Image: the-cabin-in-the-woods-masked-people.jpg]
02-10-2013, 03:17 PM
Find
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#4
RE: [LVL EDITOR/SCRIPT HELP] Particle Systems

You'll need to create the particle system again.

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



Creates a particle system on an entity.




asPSName - internal name


asPSFile - the particle system to use + extension .ps


asEntity - the entity to create the particle system at


abSavePS - determines whether a particle system should
“remember” its shown/hidden state, so that this state can be restored
when the player revisits the level

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
02-10-2013, 03:40 PM
Find




Users browsing this thread: 3 Guest(s)