Change the orientation of the special effect. yaw : z-axis pitch: y-axis roll : x-axis
public function flashEffect(string path, vec3 pos)
public function flashEffect(string path, vec2 pos)
public function flashEffect(string path, vec2 pos, real scale)
public function flashEffect(string path, vec3 pos, real scale)
public function flashEffect(string path, vec2 pos, real scale, angle yaw)
public function flashEffect(string path, vec3 pos, real scale, angle yaw)
public function flashEffect(string path, widget target, string attachPointName)
public function flashEffect(int abilityId, effecttype effType, vec3 pos)
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.
public function flashEffect(int abilityId, effecttype effType, vec2 pos)
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.
public function flashEffect(int abilityId, effecttype effType, widget target, string attachPointName)
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.
public function addEffect(string path, vec2 pos) returns effect
public function addEffect(string path, vec3 pos) returns effect
public function addEffect(string path, widget target, string attachPointName) returns effect
public function addEffect(int abilityId, effecttype effType, vec2 pos) returns effect
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.
public function addEffect(int abilityId, effecttype effType, vec3 pos) returns effect
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.
public function addEffect(int abilityId, effecttype effType, widget target, string attachPointName) returns effect
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.
public function getAbilityEffect(int abilityId, effecttype effType, int index) returns string
Returns the data defined in the ability’s field “Art - Caster/Target/Missile/Ligtning/etc.” (full list in common.j). Works for custom abilities.
public function effect.destr()
public function effect.setColorByPlayer(player whichPlayer)
public function effect.setColor(int r, int g, int b)
public function effect.setAlpha(int alpha)
public function effect.setScale(real scale)
public function effect.setPosition(real x, real y, real z)
public function effect.setHeight(real height)
public function effect.setTimeScale(real timeScale)
public function effect.setTime(real time)
public function effect.setOrientation(real yaw, real pitch, real roll)
public function effect.setOrientation(mat3 matrix)
public function effect.setOrientation(quat quaternion)
public function effect.setYaw(real yaw)
public function effect.setPitch(real pitch)
public function effect.setRoll(real roll)
public function effect.setX(real x)
public function effect.setY(real y)
public function effect.setZ(real z)
public function effect.setPositionLoc(location loc)
public function effect.getLocalX() returns real
public function effect.getLocalY() returns real
public function effect.getLocalZ() returns real
public function effect.setPos(vec3 pos)
public function effect.setPos(vec2 pos)
public function effect.getPos3() returns vec3
public function effect.getPos() returns vec2
public function effect.setColor(color color)
public function effect.setColor(colorA color)
public function effect.setOrientation(angle yaw, angle pitch, angle roll)
public function effect.setYaw(angle yaw)
Change the angle of the special effect around the z-axis. This is like changing a unit’s facing.
public function effect.setPitch(angle pitch)
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.
public function effect.setRoll(angle roll)
Change the angle of the special effect around x-axis.
public function effect.playAnimation(animtype whichAnim)
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).
public function effect.playAnimation(animtype whichAnim, real timeScale)
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).
public function animtype.getName() returns string
Returns the name of the animation type.
public function effect.addSubAnimation(subanimtype whichSubAnim)
public function effect.clearSubAnimations()
public function effect.removeSubAnimation(subanimtype whichSubAnim)
public function effect.getScale() returns real
Get effect scale.
public function effect.setScale(vec3 scaleVector)
Set effect 3D scale
public function effect.resetScale()
Reset effect scale.