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
How do i use particles???
Henriksen Offline
Senior Member

Posts: 308
Threads: 71
Joined: Dec 2010
Reputation: 2
#1
How do i use particles???

Hi.

Im making a custom story and i would like to make a cave in. But when it happends its supposed to come smoke if you know what i mean. So... how do i do it. I have looked at the script for the original but i dont get it.

Could anybody post the script and tell me what each of the parameters mean?

Sry for my terrible english xD
03-17-2011, 11:54 AM
Find
thepaleking Offline
Member

Posts: 94
Threads: 1
Joined: Dec 2010
Reputation: 0
#2
RE: How do i use particles???

http://wiki.frictionalgames.com/hpl2/amn..._functions
http://wiki.frictionalgames.com/hpl2/tut..._particles
http://wiki.frictionalgames.com/hpl2/too...cle_editor
03-17-2011, 12:21 PM
Find
Henriksen Offline
Senior Member

Posts: 308
Threads: 71
Joined: Dec 2010
Reputation: 2
#3
RE: How do i use particles???

(03-17-2011, 12:21 PM)thepaleking Wrote: http://wiki.frictionalgames.com/hpl2/amn..._functions
http://wiki.frictionalgames.com/hpl2/tut..._particles
http://wiki.frictionalgames.com/hpl2/too...cle_editor

Hi thanks for the quick answear Big Grin

I know how to make particles but I dont know how to make them appear when i enter a area. Im sry i wasnt very specific in my first post, i was really tired when i wrote it xD

But you know is it something like :

MakeParticle("cave_inPS"); or something??? XD
03-17-2011, 12:46 PM
Find
thepaleking Offline
Member

Posts: 94
Threads: 1
Joined: Dec 2010
Reputation: 0
#4
RE: How do i use particles???

Yeah, that's on the script function page. Just crtl + f and search for particle.
03-17-2011, 12:54 PM
Find
Henriksen Offline
Senior Member

Posts: 308
Threads: 71
Joined: Dec 2010
Reputation: 2
#5
RE: How do i use particles???

(03-17-2011, 12:54 PM)thepaleking Wrote: Yeah, that's on the script function page. Just crtl + f and search for particle.

Ok, so i found this and i guess this is it?

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

But what do i put in each parameter?
What do i put in "string& asPSName" etc?
03-17-2011, 12:57 PM
Find
Linus Ågren Offline
Senior Member

Posts: 309
Threads: 58
Joined: Jan 2011
Reputation: 5
#6
RE: How do i use particles???

CreateParticleSystemAtEntity("", "ps_dust_break_25.ps", "AreaEffects", false);

ps_dust_break_25.ps = Particle Effect File
AreaEffects = Where the PS Effect shall be created

Creator of The Dark Treasure.
03-17-2011, 12:59 PM
Website Find
Pandemoneus Offline
Senior Member

Posts: 328
Threads: 2
Joined: Sep 2010
Reputation: 0
#7
RE: How do i use particles???

asPSName = the internal name you want to give the particle system, you will need that name when you want to use DestroyParticleSysten.
asPSFile = self-explanatory, the file name of the particle system (just look in the particle system browser)
asEntity = where it should appear
abSavePS = not quite sure what that does, might cache it or remembers that it already has been used next time you enter the map

03-17-2011, 01:06 PM
Find




Users browsing this thread: 1 Guest(s)