CLuaEmitter.Add

From GMod Wiki

Jump to: navigation, search
Function
Syntax CLuaEmitter:Add( String Sprite path, Vector Origin )
Description:
Creates a particle.
Returns: CLuaParticle
In Object: CLuaEmitter
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=CLuaEmitter.Add]CLuaEmitter.Add [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionCreates an emitter, and then creates a particle at position (0,0,0) on the map and alocates it to the variable myParticle.
Used onNewerClient.png
Code
local em = ParticleEmitter( Vector( 0, 0, 0 ) )
local myParticle = em:Add( "sprites/light_glow02_add", Vector( 0, 0, 0 ) )
OutputCreates 1 particle of the spritelight_glow02_add at position 0,0,0 on the map


Additional notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox