Hey Guys,
I was really excited to create scripts and connect
them to entities in my game. Unfortunately my scripts
doesnt work very well. Altough I copied important parts
out of the scripts in folder. Here is my written script:
MOD EDIT - I put your code in the code tags. In future, please try to remember to use code tags; it helps keep the threads, nice and easy to read.
-- LUA Script - precede every function and global member with lowercase name of script + '_main'
-- MyScript
function myscript_init(e)
end
function myscript_main(e)
PlayerDist = GetPlayerDistance(e)
if PlayerDist < 100 then
TextCenterOnX(5,5,3,"Press E")
end
end
-------------
It doesn not work. Why?
Do I forgor something?
Thank you for help!