so i made my first script, but i ran in to some issues. The result i want is to prompt text that only displays once,
the first script:
function promptonce_main(e)
PlayerDist = GetPlayerDistance(e)
if PlayerDist < 700 then
Text(50,50,1,'some text');
end
end
it' works but i can't find a way to play just once
second i made with GetPlayerInZone:
function promptdestroy_init(e)
end
function promptdestroy_main(e)
if (GetPlayerInZone(e)) == 1 then
Text(50,50,1,'some text');
elseif (GetPlayerInZone(e)) == 0 then
Destroy(e);
end
end
with this i guess it's destroyed before i enter the zone?
I would be grateful if someone can help me out