Azlier
Old World Ghost
- Reaction score
- 461
Yes. I love these functions.
For the player p, it returns his camera coordinate. For everyone else, it's Return Nothing .
JASS:
private function returnX takes player p returns real
if GetLocalPlayer() == p then
return GetCameraTargetPositionX()
endif
endfunction
private function returnY takes player p returns real
if GetLocalPlayer() == p then
return GetCameraTargetPositionY()
endif
endfunction
For the player p, it returns his camera coordinate. For everyone else, it's Return Nothing .