I noticed that player X-axis camera angle snaps to 0 degrees after teleport. I have been trying to preserve X-axis camera angle via script but have had no success. Can I even control the player?
function timedtransportinzone_init(e)
end
function timedtransportinzone_main(e)
if g_Entity[e]['plrinzone']==1 then
--xAng=g_PlayerAngX
--yAng=g_PlayerAngY
--PromptDuration("Camera angle: "..xAng.." Player direction: "..yAng, 3000) -- duration is in milliseconds.
PlayNon3DSound(e,0)
xAng = GetGamePlayerStateCamAngleX()
TransportToIfUsed(e)
SetGamePlayerStateCamAngleX(xAng)
end
end