Frictional Games Forum (read-only)

Full Version: PS error!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
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
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)
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?
For certain direction, place the area in certain direction.
A string is a set of characters.