CEffectData.SetNormal

From GMod Wiki

Revision as of 23:26, 22 October 2009 by Crazy Quebecer (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax EffectData:SetNormal( Vector )
Description:
Sets the effects normal vector (the actual meaning of this differs between effects).
Returns: nil
In Object: CEffectData
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=CEffectData.SetNormal]CEffectData.SetNormal [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionSets the normal of an effect and then spawns it
Used onNewerShared.png
Code
local vPoint = Vector(0,0,0)
local Normal = Vector(0,0,1)
local EfDat = EffectData()
EfDat:SetOrigin( vPoint )
EfDat:SetNormal( Normal )
util.Effect( "cball_bounce", EfDat )	
OutputA spark aimed upwards can be seen at the center of the map


See Also

Stub.pngThis article is a stub.
You can help the GMod Wiki by expanding it.
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox