G.ParticleEmitter

From GMod Wiki

Jump to: navigation, search
Function
Syntax ParticleEmitter( Vector position [, Boolean 3D particles] )
Where is this used?
Description:
Creates a new particle emitter.
Returns: CLuaEmitter
Part of Library: Global Functions
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.ParticleEmitter]G.ParticleEmitter [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionCreates a particle emitter at the player's position and adds the unfreeze particle effect to it.
Used onNewerClient.png
Code
local emitter = ParticleEmitter( LocalPlayer():GetPos() )
local particle = emitter:Add( "effects/freeze_unfreeze", LocalPlayer():GetPos() )
OutputN/A


Additional Notes

See also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox