CEffectData.SetSurfaceProp

From GMod Wiki

Revision as of 17:00, 12 December 2010 by Wizard of Ass (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax CEffectData:SetSurfaceProp( Material )
Description:
Adds an material to an effect.
Returns: nil
In Object: CEffectData
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=CEffectData.SetSurfaceProp]CEffectData.SetSurfaceProp [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionAdds an material to an effect
Used onNewerShared.png
Code
 
local vPoint = Vector(0,0,0)
local effectdata = EffectData()
effectdata:SetStart( vPoint ) // not sure if we need a start and origin (endpoint) for this effect, but whatever
effectdata:SetOrigin( vPoint )
effectdata:SetScale( 1 )
effectdata:SetSurfaceProp(effectdata:GetSurfaceProp("metal"))
util.Effect( "customeffect", effectdata )	
 
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox