e2 docs custom effects - wiremod/wire GitHub Wiki
Custom/effects
Effect = effect()
Creates and returns new effect (1 ops)
Pos)
Effect = Effect:setOrigin(Sets the origin of the effect (1 ops)
Pos)
Effect = Effect:setStart(Sets the start of the effect (1 ops)
Mag)
Effect = Effect:setMagnitude(Sets the magnitude of the effect (1 ops)
Ang)
Effect = Effect:setAngles(Sets the angle of the effect (1 ops)
Scale)
Effect = Effect:setScale(Sets the scale of the effect (1 ops)
Ent)
Effect = Effect:setEntity(Sets the entity of the effect (1 ops)
Norm)
Effect = Effect:setNormal(Sets the normalized direction vector of the effect (1 ops)
Prop)
Effect = Effect:setSurfaceProp(Sets the surface property index of the effect (1 ops)
Radius)
Effect = Effect:setRadius(Sets the radius of the effect (1 ops)
Index)
Effect = Effect:setMaterialIndex(Sets the material index of the effect (1 ops)
Index)
Effect = Effect:setHitBox(Sets the hit box index of the effect (1 ops)
Flags)
Effect = Effect:setFlags(Sets the flags of the effect (1 ops)
Index)
Effect = Effect:setEntIndex(Sets the entity of the effect via its index (1 ops)
Index)
Effect = Effect:setDamageType(Sets the damage type of the effect. See DMG_ Enums on GMod Wiki (1 ops)
Index)
Effect = Effect:setColor(Sets the color of the effect. Color is represented by a byte (1 ops)
Index)
Effect = Effect:setAttachment(Creates new attachment ID for the effect (1 ops)
Name)
Effect:play(Plays the effect with given name (eg. watersplash) (1 ops)