Ok ive use FreezePlayer when the player gets near the gate and displayed an image of a little robot in a window saying docking granted bla bla, but when I do this the player view flips to the rear of the ship whereas I want it to stay fixed on the ring. ideas anyone plz? heres my updated script
paragraph = {}
activated = {}
LoadImages("2150img",0)
SetImagePosition(5,4)
SetImageAlignment(1)
function dock_init_name(e,name)
-- This will take the paragraph from the name in the propertiies of the entity..
paragraph[e] = name
activated[e] = 0
end
function dock_main(e)
-- 200 is the distance you want the script to react you can change this to whatever you want..
if GetPlayerDistance(e) <= 400 then
if activated[e] == 0 then
FreezePlayer()
PlayVideo(e,0)
ShowImage(0)
Prompt("Press E to Dock")
end
if g_KeyPressE == 1 or activated[e] == 1 then
-- 30,80 is the position on the screen for the text you can change this if you want..
TextCenterOnX(30,80,1,paragraph[e])
HideImage(0)
activated[e] = 1
PlayVideo (e,1)
UnFreezePlayer()
Destroy(e)
JumpToLevelIfUsed(e)
end
else
activated[e] = 0
HideImage(0)
end
end