EFFECT.Init

From GMod Wiki

Revision as of 18:02, 28 July 2010 by Crazy Quebecer (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Event Hook
Hook NameInit
SyntaxEFFECT:Init( CEffectData data )
DescriptionStarts the effect and retrieves the effectdata used in util.Effect.
ReturnsNil
Lua StateNewerClient.png
BBCode[b][url=wiki.garrysmod.com/?title=EFFECT.Init]EFFECT.Init [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]

Examples

DescriptionSets the effect's position to it's origin from effectdata
Used onNewerClient.png
Code
function EFFECT:Init(effectdata)
	self:SetPos(effectdata:GetOrigin()); -- Sets the effect's position to it's origin from effectdata
end
OutputN/A
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox