Entity.StopParticles

From GMod Wiki

Revision as of 07:08, 11 October 2009 by Crazy Quebecer (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax Entity:StopParticles( )
Description:
Stops any engine particles being emitted from an entity.
Returns: nil
In Object: Entity
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.StopParticles]Entity.StopParticles [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionCreates a blue barrel at the world origin and attaches the TF2 flamethrower effect to it, then extinguishes the flame after five seconds.
Used onNewerServer.png
Code
local prop = ents.Create("prop_physics")
prop:SetModel("models/props_borealis/bluebarrel001.mdl")
prop:SetPos(Vector(0,0,0))
prop:Spawn()
ParticleEffectAttach("flamethrower",PATTACH_ABSORIGIN_FOLLOW,prop,0)
timer.Simple(5,function() prop:StopParticles() end)
OutputN/A


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox