Thanks Avram
You got me on the right track but it's still not displaying the image when I get inside 1000 units
here's the code that I ended up with.
function aamyimagetest_init(e)
LoadImages("test",1)
end
function aamyimagetest_main(e)
PlayerDist = GetPlayerDistance(e)
if PlayerDist < 1000 then
PromptLocal(e,"Inside 1000")
SetImageAlignment(1)
SetImagePosition(10, 10)
ShowImage(1)
end
end
In working with your code I discovered that the lua script name must be in lower case
I also discovered that the LoadImages string is a folder name "test" inside the scriptbank\images\.. correct?
It also seems that these type of prompt and display image function calls must be attached to a dynamic entity, static entities do not work... correct??
Thus, the above code does work without any loading error, and when I get within 1000 units, the prompt appears, but not the ShowImage(1) ???
The image that is loaded is a .png with the file name image0001.png, and is the only image in the folder "test" (360 x 225) size
What am I doing wrong???
There is no Spoon...