Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support


Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PS error!
Author Message
SLAMnesia Offline
Member

Posts: 99
Joined: May 2011
Reputation: 0
Post: #1
PS error!

OK! I have asked this before but I think the only way I will understand particle systems is if someone translates the script into english for me
CreateParticleSystemAtEntity("1", "2", "3", 4);
what do 1, 2, 3 and 4 represent in this function?
07-09-2011 01:33 AM
Find all posts by this user Quote this message in a reply
Tanshaydar Offline
From Beyond

Posts: 3,085
Joined: Mar 2009
Reputation: 66
Post: #2
RE: PS error!

void 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 state

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

07-09-2011 01:53 AM
Visit this user's website Find all posts by this user Quote this message in a reply
DRedshot Offline
Senior Member

Posts: 374
Joined: Jun 2011
Reputation: 11
Post: #3
RE: PS error!

1 - this is the name of the particle system, this can be named anything you want, and can also be left blank, it is a string,
2 - this is the name of the ps you want to use, these are found in Redist>Particles , also a string
3 - this is the name of the entity which the particle will be created at
4 - this is a boolean (true/false) for whether the ps will be saved (usually you want this to be false, although im not sure what it does)

07-09-2011 01:57 AM
Find all posts by this user Quote this message in a reply
SLAMnesia Offline
Member

Posts: 99
Joined: May 2011
Reputation: 0
Post: #4
RE: PS error!

For #3, how do I make the PS face a certain direction?
and this doesn't work
CreateParticleSystemAtEntity("", "ps_dust_elevator_crash.ps", "treeee", false);

anndd.. what's a string?
07-11-2011 12:09 AM
Find all posts by this user Quote this message in a reply
Tanshaydar Offline
From Beyond

Posts: 3,085
Joined: Mar 2009
Reputation: 66
Post: #5
RE: PS error!

For certain direction, place the area in certain direction.
A string is a set of characters.

07-11-2011 12:15 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)