* * * * * * * * * Fx * * * * * * * * * * * * * * * * * An Fx-Object is basically just a moveable effect. * Up above you find the Fx-Class. By creating * an instace of it, you recieve the mentioned, * moveable effect. * Constructors and functions defined as following, * should be self-explanatory. * Also features automatic recycling of Fx-instances * * Credits to Vexorian, Anitarf *
"flashes" the given effect. Flashing plays the death animation of the effect at the fx's position.
Get the color (rgba)
Get the dummyunit
Get the owner of this Fx Object
Get the 2d position
Get the 3d position
Get the xy angle
Get the z coordinate (fly height)
Get the z angle
Destroys the Fx object without showing the effect's death animation Sort of a workaround by setting the position to the top right corner, hopefully not visible.
Sets the color of the Fx object to the given color Color: 0 = no color - 255 = full color Alpha: 0 = transparent - 255 = visible
Set the path to the sfx model that should be displayed. If there is already a model displayed, it will be replaced with the new one.
Set the owner of this Fx Object
Set the playercolor of this Fx Object
Set the scale of this Fx Object
Set the position to the given xy vector tuple
Set the xy angle
Creates a new dummy with the given facing in order to achieve instant turning.
Set the position to the given xyz vector tuple
Set the position to the given xyz vector tuple. It is possible to ignore the terrain height when desired. Use setXYheight when you never need terrain height.
Set the z coordinate (flyHeight)
Set the z angle in radians