Ok this is a really easy question still I can not solve it.. I'm using a point ability (such as shockwave, carrionswarm etc,) and I need to get the X and Y from the target point order. I have looked through the function list and "GetOrderPointX/Y" is the only one I can find. Still, when using this it doesn't seem to be the correct call at all since I don't receive any value at all (meaning the point automatically refers to the center of the map.) I'm using this short simple code:
to see if it worked. But it doesn't, the effect is created in the center of the map and not where I casted the spell. I'm sure there is a simple solution for this (as always,) but I just can't seem to figure it out..
JASS:
set data.tx = GetOrderPointX()
set data.ty = GetOrderPointY()
call AddSpecialEffect("Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl",data.tx,data.ty)
to see if it worked. But it doesn't, the effect is created in the center of the map and not where I casted the spell. I'm sure there is a simple solution for this (as always,) but I just can't seem to figure it out..