Your browser does not support HTML5 canvas. Fork me on GitHub

Available Packages:

Effect

Source

function addEffect(string path, vec2 pos) returns effect

Source

function addEffect(string path, vec3 pos) returns effect

Source

function addEffect(string path, widget target, string attachPointName) returns effect

Source

function addEffect(int abilityId, effecttype effType, vec2 pos) returns effect

Source

Creates an effect from the data defined in the ability's field "Art - Caster/Target/Missile/Ligtning/etc." (full list in common.j). Works for custom abilities.

function addEffect(int abilityId, effecttype effType, vec3 pos) returns effect

Source

Creates an effect from the data defined in the ability's field "Art - Caster/Target/Missile/Ligtning/etc." (full list in common.j). Works for custom abilities.

function addEffect(int abilityId, effecttype effType, widget target, string attachPointName) returns effect

Source

Creates an effect from the data defined in the ability's field "Art - Caster/Target/Missile/Ligtning/etc." (full list in common.j). Works for custom abilities.

function static effect.addSubAnimation(subanimtype whichSubAnim)

Source

function static effect.clearSubAnimations()

Source

function static effect.destr()

Source

function flashEffect(string path, vec3 pos)

Source

function flashEffect(string path, vec2 pos)

Source

function flashEffect(string path, vec2 pos, real scale)

Source

function flashEffect(string path, vec3 pos, real scale)

Source

function flashEffect(string path, vec2 pos, real scale, angle yaw)

Source

function flashEffect(string path, vec3 pos, real scale, angle yaw)

Source

function flashEffect(string path, widget target, string attachPointName)

Source

function flashEffect(int abilityId, effecttype effType, vec3 pos)

Source

Creates and immediatly destroys an effect from the data defined in the ability's field "Art - Caster/Target/Missile/Ligtning/etc." (full list in common.j). Works for custom abilities.

function flashEffect(int abilityId, effecttype effType, vec2 pos)

Source

Creates and immediatly destroys an effect from the data defined in the ability's field "Art - Caster/Target/Missile/Ligtning/etc." (full list in common.j) Works for custom abilities.

function flashEffect(int abilityId, effecttype effType, widget target, string attachPointName)

Source

Creates and immediatly destroys an effect from the data defined in the ability's field "Art - Caster/Target/Missile/Ligtning/etc." (full list in common.j). Works for custom abilities.

function getAbilityEffect(int abilityId, effecttype effType, int index) returns string

Source

Returns the data defined in the ability's field "Art - Caster/Target/Missile/Ligtning/etc." (full list in common.j). Works for custom abilities.

function static effect.getLocalX() returns real

Source

function static effect.getLocalY() returns real

Source

function static effect.getLocalZ() returns real

Source

function static animtype.getName() returns string

Source

Returns the name of the animation type.

function static effect.getPos() returns vec2

Source

function static effect.getPos3() returns vec3

Source

function static effect.getScale() returns real

Source

Get effect scale.

function static effect.playAnimation(animtype whichAnim)

Source

Plays an animation such as birth/death/stand/etc. defined in constants ANIM_TYPE_BIRTH/ANIM_TYPE_DEATH/ANIM_TYPE_STAND/etc. (full list in common.j).

function static effect.playAnimation(animtype whichAnim, real timeScale)

Source

Plays an animation such as birth/death/stand/etc. defined in constants ANIM_TYPE_BIRTH/ANIM_TYPE_DEATH/ANIM_TYPE_STAND/etc. (full list in common.j).

function static effect.removeSubAnimation(subanimtype whichSubAnim)

Source

function static effect.resetScale()

Source

Reset effect scale.

function static effect.setAlpha(int alpha)

Source

function static effect.setColor(int r, int g, int b)

Source

function static effect.setColor(color color)

Source

function static effect.setColor(colorA color)

Source

function static effect.setColorByPlayer(player whichPlayer)

Source

function static effect.setHeight(real height)

Source

function static effect.setOrientation(real yaw, real pitch, real roll)

Source

function static effect.setOrientation(mat3 matrix)

Source

function static effect.setOrientation(quat quaternion)

Source

function static effect.setOrientation(angle yaw, angle pitch, angle roll)

Source

Change the orientation of the special effect. yaw : z-axis pitch: y-axis roll : x-axis

function static effect.setPitch(real pitch)

Source

function static effect.setPitch(angle pitch)

Source

Change the of the special effect around the y-axis. Warning: As of 1.29.2, setPitch has issues for values between 1.57-4.7 radians or 90-270 degrees. It is recommended to use setOrientation.

function static effect.setPos(vec3 pos)

Source

function static effect.setPos(vec2 pos)

Source

function static effect.setPosition(real x, real y, real z)

Source

function static effect.setPositionLoc(location loc)

Source

function static effect.setRoll(real roll)

Source

function static effect.setRoll(angle roll)

Source

Change the angle of the special effect around x-axis.

function static effect.setScale(real scale)

Source

function static effect.setScale(vec3 scaleVector)

Source

Set effect 3D scale

function static effect.setTime(real time)

Source

function static effect.setTimeScale(real timeScale)

Source

function static effect.setX(real x)

Source

function static effect.setY(real y)

Source

function static effect.setYaw(real yaw)

Source

function static effect.setYaw(angle yaw)

Source

Change the angle of the special effect around the z-axis. This is like changing a unit's facing.

function static effect.setZ(real z)

Source