game/AddParticles

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Specified that a file extension is required)
(example)
Line 10: Line 10:
 
|name=particleFileName
 
|name=particleFileName
 
|desc=The path of the file to add. Must be (file).pcf.
 
|desc=The path of the file to add. Must be (file).pcf.
 +
}}
 +
{{Example
 +
|Description=Adds the particle file named "myparticles.pcf"
 +
|Code=game.AddParticles( "particles/myparticles.pcf" )
 
}}
 
}}

Revision as of 23:35, 26 April 2015

 game.AddParticles( )

Contents

Description

Loads a particle file.

Arguments

string particleFileName

The path of the file to add. Must be (file).pcf.

Examples

Example

Adds the particle file named "myparticles.pcf"

game.AddParticles( "particles/myparticles.pcf" )


Personal tools
Navigation