function GetPlayerCameraX takes player p returns real
local real r=0.
if GetLocalPlayer()==p then
set r=GetCameraTargetPositionX()
endif
return r
endfunction
function GetPlayerCameraY takes player p returns real
local real r=0.
if GetLocalPlayer()==p then
set r=GetCameraTargetPositionY()
endif
return r
endfunction
function GetPlayerCameraZ takes player p returns real
local real r=0.
if GetLocalPlayer()==p then
set r=GetCameraTargetPositionZ()
endif
return r
endfunction