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
Particle Systems
Crunchygoblin Offline
Junior Member

Posts: 15
Threads: 7
Joined: Jan 2011
Reputation: 0
#1
Particle Systems

Is there a way to activate a particle system the same way you can with a entity. something like SetActiveParticleSystem ("Blah blah")
02-07-2011, 10:20 PM
Find
Thomas Offline
Frictional Games

Posts: 2,634
Threads: 184
Joined: Apr 2006
Reputation: 68
#2
RE: Particle Systems

http://wiki.frictionalgames.com/hpl2/amn..._functions

CreateParticleSystemAtEntity
CreateParticleSystemAtEntityExt
DestroyParticleSystem
02-07-2011, 11:06 PM
Find
Tottel Offline
Senior Member

Posts: 307
Threads: 9
Joined: Nov 2010
Reputation: 0
#3
RE: Particle Systems

So I don't have to start a new topic: Can you use that as well on an 'empty/non-visible' entity?
02-08-2011, 01:22 AM
Find
Acies Offline
Posting Freak

Posts: 1,643
Threads: 60
Joined: Feb 2011
Reputation: 73
#4
RE: Particle Systems

Yes, you may create it at a script area.

[Image: mZiYnxe.png]


02-09-2011, 12:53 PM
Find
Ongka Offline
Member

Posts: 225
Threads: 3
Joined: Nov 2010
Reputation: 20
#5
RE: Particle Systems

For example:

CreateParticleSystemAtEntity("blood", "ps_blood_tiny_stream.ps", "AreaBlood", false);
....
DestroyParticleSystem("blood");

[Image: 18694.png]
02-09-2011, 10:10 PM
Find
Anxt Offline
Senior Member

Posts: 588
Threads: 12
Joined: Mar 2011
Reputation: 10
#6
RE: Particle Systems

Hi, new to these forums, so sorry if I'm posting in an outdated thread.

I have been attempting to add particle effects to my map when a particular action is taken (in this case, using an item on an entity). I have:

CreateParticleSystemAtEntity("E1PS", "ps_orb_light_core.ps", "PSE1", true);

I know my names are meaningless, but its exactly how it is worded in my code, maybe there's a typo I don't see.

Yet upon using the action, no particle effects are generated. I have preloaded the one I want, and I have the Create function inside the function that is called when the player uses the item.

Anyone know why it isn't being created? I have tried other methods as well, such as generating a PS inside a script area, but that failed as well.

Thanks in advance for the help.

P.S.(no pun intended Smile) I have also noticed that if I place a particle system in a map, and set it to inactive inside the level editor, it remains active when in the game. Why is that?

03-04-2011, 01:34 AM
Find




Users browsing this thread: 1 Guest(s)