Guten tag
! More precisely Hello! Ну или привет! The fact that I again need help with the script. It should work well - you take note. Display images. Time passes. Image removed. And it can not be read. But here's the problem. The image is not displayed. I have and I Do not Know What to Do! I need your help.
note001_pressed = 0
function note001_init(e)
LoadImages("note001",0)
end
function note001_main(e)
PlayerDist = GetPlayerDistance(e)
if PlayerDist < 250 then
if g_Entity[e]['activated'] == 0 then
if g_Entity[e]['haskey'] == -1 then
SetActivated(e,1)
else
if g_Entity[e]['haskey'] == 1 then
Prompt("Press E to read a note")
if g_KeyPressE == 1 then
SetActivated(e,1)
end
else
Prompt("...")
end
end
else
if g_Entity[e]['activated'] == 1 then
Prompt("Press E to read a note")
if g_KeyPressE == 1 and g_Entity[e]['animating'] == 0 and note001_pressed == 0 then
g_Entity[e]['animating'] = 1
SetActivated(e,2)
ActivateIfUsed(e)
—SetImagePosition(50,50)
—ShowImage(0)
PlaySound(e,0)
FreezePlayer(0)
StartTimer(e)
note001_pressed = 1
end
else
if g_Entity[e]['activated'] == 2 then
if GetTimer(e)>1000 then
HideImage(0)
Prompt("This note has been deciphered")
HideImage(0)
UnFreezePlayer(0)
end
if g_KeyPressE == 1 and g_Entity[e]['animating'] == 0 and note001_pressed == 0 then
g_Entity[e]['animating'] = 1
SetActivated(e,1)
note001_pressed = 1
end
end
end
end
end
if g_KeyPressE == 0 then
note001_pressed = 0
end
end