This script shows a image when you come close to the entity and removes the image when you go away:
;Artificial Intelligence Script
;Header
desc = show a image on screen when player comes close to entity
;Triggers
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\text\YOURHUD.tga,hudname=YOURHUDNAME,hudhide=1,hudmake=display,state=1
:state=1,plrdistwithin=60:hudshow=YOURHUDNAME,state=2
:state=2,plrdistfurther=70:hudunshow=YOURHUDNAME,state=1
;End of Script
You'll have to replace YOURHUD.tga with the name of your imagefile and place that file in the gamecore/text folder.
And you should give it a name (hudname). I named it here YOURHUDNAME.
Here is a other version:
In this one the player can additionally unshow the image by pressing the "F" key.
;Artificial Intelligence Script
;Header
desc = show a image on screen when player comes close to entity. Player can remove the image from screen by pressing the "F" key
;Triggers
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\text\YOURHUD.tga,hudname=YOURHUDNAME,hudhide=1,hudmake=display,state=1
:state=1,plrdistwithin=60:hudshow=YOURHUDNAMEstate=2
:state=2,plrdistfurther=70:hudunshow=YOURHUDNAME,state=1
:state=2,scancodekeypressed=33:hudunshow=YOURHUDNAME,state=3
:state=3,plrdistfurther=70:state=1
;End of Script
And one more version
In this one the image doesnt show up automatically.
The player has to press the "F" key when he is close.
To unshow the image he can press "F" again or go away.
;Artificial Intelligence Script
;Header
desc = show a image on screen when player is close to entity and presses the "F" key
;Triggers
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\text\YOURHUD.tga,hudname=YOURHUDNAME,hudhide=1,hudmake=display,state=1
:state=1,plrdistwithin=60,scancodekeypressed=33:state=2
:state=2,scancodekeypressed=0:hudshow=YOURHUDNAME,state=3
:state=3,plrdistfurther=70:hudunshow=YOURHUDNAME,state=1
:state=3,scancodekeypressed=33:hudunshow=YOURHUDNAME,state=4
:state=4,scancodekeypressed=0:state=1
;End of Script
Edit: comments removed from scripts...they made them more hard to read than without comments + one useless condition removed in script #3