E2 Extension Docs


Entity (Disabled)
entity:setPos(vector position)
Restricted to Leet Vip or higher. Can be used on players, owner only unless the owner is an admin.
entity:setAngles(angle angle)
entity:setVelocity(vector velocity)
Restricted to Leet Vip or higher. Can be used on players, owner only unless the owner is an admin.
ParticleEmitter
particleEffect(string effect, vector position, angle angle)
Restricted to Leet Vip or higher. Automatically attached to the E2 gate but not parented. Effect lists can be found here.
particleEffectAttach(string effect, number attachType, entity entity, number attachmentID)
Restricted to Leet Vip or higher. Read the GMod wiki entry for more information.
entity:stopParticles()
Restricted to Leet Vip or higher. Stops the particles currently attached to the entity.
Misc
worldSound(vector position, string soundPath)
Restricted to Junior Admin or higher.
entity:takeDamage(number amount)
Restricted to Junior Admin or higher.
entity:setHealth(number amount)
Restricted to Junior Admin or higher. Will kill the player if set to 0. Clamped between 0 and 5000
approach(number a, number b, number c)
Increment number a using number c until it reaches number b. Returns number