- Joined
- Sep 26, 2009
- Messages
- 9,534
This doesn't give me any syntax errors, but mind-bogglingly doesn't give me any results.
This script is referenced...
and it references...
can anyone please tell me why nothing is happening?
btw this was working perfectly when I was manually extracting the coordinates, so the problem is somewhere in the relationship between these two functions...
This script is referenced...
JASS:
local location x = GetUnitLoc(GetTriggerUnit())
local real c
local real d
call xy(c,d,x)
call SetDoodadAnimation(c, d, 128, 'JOgr', false, "stand alternate", false)
JASS:
function xy takes real c, real d, location x returns real c, real d
set c = GetLocationX(x)
set d = GetLocationY(x)
return c
return d
endfunction
can anyone please tell me why nothing is happening?
btw this was working perfectly when I was manually extracting the coordinates, so the problem is somewhere in the relationship between these two functions...