User Tools

Site Tools


hpl2:amnesia:script_functions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
hpl2:amnesia:script_functions [2019/12/17 11:34]
darkfire Updated the SpawnPS functions
hpl2:amnesia:script_functions [2019/12/17 11:41] (current)
darkfire SPS
Line 702: Line 702:
 </​code>​ </​code>​
  
-Spawn Particle Systems (SPS) continuously ​spawn regular particle systems (''​.ps''​) around the player.\\ +Continuously ​spawn regular particle systems (''​.ps''​) around the player. Particles created by this script carry over from map to map.\\ 
-''​StartPlayerSpawnPS''​ uses  ​''​.sps'' ​files as an argumentSome ''​.sps''​ files are located in the ''/​misc''​ folder.\\+\\ 
 +//​asSPSFile//​ - the ''​.sps'' ​file to useExemplary ​''​.sps''​ files are located in the ''/​misc''​ folder ​in the main game directory.\\ 
 +\\
 Custom ''​.sps''​ files can be created by hand in a text editor (see existing ones and mimic how those are written).\\ Custom ''​.sps''​ files can be created by hand in a text editor (see existing ones and mimic how those are written).\\
-Particles created by this script carry over from map to map.\\ +Since ''​StopPlayerSpawnPS()''​ doesn'​t seem to work, to stop an SPS you must create an ''​.sps''​ file with an empty particle ​field field and override the old SPS by calling ​''​StartPlayerSpawnPS'' ​again.
-Since ''​StopPlayerSpawnPS()''​ doesn'​t seem to work, to stop an SPS you must create an ''​.sps''​ file with an empty particle field and override the old SPS via ''​StartPlayerSpawnPS''​.+
 <code c++> <code c++>
 void PlayGuiSound(string&​ asSoundFile,​ float afVolume); void PlayGuiSound(string&​ asSoundFile,​ float afVolume);
hpl2/amnesia/script_functions.txt · Last modified: 2019/12/17 11:41 by darkfire