public class Fx
Members:
construct(real x, real y, angle facing)construct(vec2 pos, angle facing)construct(vec2 pos, string fxpath)construct(vec2 pos, angle facing, string fxpath)construct(vec3 pos, angle facing)construct(vec3 pos, string fxpath)construct(vec3 pos, angle facing, string fxpath)construct(playercolor pc, vec3 pos, angle facing, string fxpath)getOwner() returns player Get the owner of this Fx ObjectsetPlayerColor(playercolor pc)setOwner(player p, boolean changeColor) Set the owner of this Fx ObjectsetPlayercolor(playercolor c) Set the playercolor of this Fx ObjectsetScale(real value) Set the scale of this Fx ObjectgetColor() returns colorA Get the color (rgba)getDummy() returns unit Get the dummyunitsetColor(colorA newColor) Sets the color of the Fx object to the given color Color: 0 = no color - 255 = full color Alpha: 0 = transparent - 255 = visibleflash(string fx) “flashes” the given effect. Flashing plays the death animation of the effect at the fx’s position.getXYAngle() returns angle Get the xy anglesetXYAngle(angle value) Set the xy anglesetXYAngleInstant(angle value) Creates a new dummy with the given facing in order to achieve instant turning.getZAngle() returns angle Get the z anglesetZAngle(angle zangle) Set the z angle in radiansgetZ() returns real Get the z coordinate (fly height)getPos2() returns vec2 Get the 2d positiongetPos3() returns vec3 Get the 3d positionsetXY(vec2 pos) Set the position to the given xy vector tuplesetXYZ(vec3 pos) Set the position to the given xyz vector tuple