okay, so I added a little line that destroys the prompt when pressing N for NO.
but when I walk away and get back (in order to get to the next level now) the prompt doesn't show up.
obviously, I am missing something. Maybe a timer function, so that the destroy command is not forever?
here is the code:
-- LUA Script - precede every function and global member with lowercase name of script
function winzone_init(e)
end
function winzone_main(e)
if g_Entity[e]['plrinzone']==1 then
Prompt("Do you want to enter the next area? Y/N")
if GetScancode() == 44 then JumpToLevelIfUsed(e) end
if GetScancode() == 49 then Destroy(e) end
end
end
Windows 10 64bit - Intel Core i7-2600 CPU @ 3.40GHz, 8,0 GB Ram, AMD Radeon R9 270X
Youtube:
The German Music Dude: https://www.youtube.com/user/DeutscherVolker
DK Productions: https://www.youtube.com/channel/UCIqwvScXnJL_zNYqSsfTCqA