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
PS error!
SLAMnesia Offline
Member

Posts: 99
Threads: 39
Joined: May 2011
Reputation: 0
#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
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#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
Website Find
DRedshot Offline
Senior Member

Posts: 374
Threads: 23
Joined: Jun 2011
Reputation: 11
#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
SLAMnesia Offline
Member

Posts: 99
Threads: 39
Joined: May 2011
Reputation: 0
#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
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#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
Website Find




Users browsing this thread: 1 Guest(s)