Have been playing around, so far the following script will show the HUD when I press the T key. However it won't hide the HUD when I drop the item ( Press T again )
I will still mess around with it, but maybe one of you guys can have a look and see what you can come up with.
;Artificial Intelligence Script
;written by Panther1965
;Header
desc = show custom hud while holding object
;Triggers
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\user\Temphud1.jpg,hudname=a1,hudhide=1,hudmake=display,state=10
:state=10,plrdistwithin=40:state=1
:state=1,plrdistwithin=40,scancodekeypressed=20:localvar=1,setvar=1,state=2
:state=2,varequal=1:hudshow=a1
:state=2,scancodekeypressed=20:localvar=1,setvar=0,state=3
:state=3,varequal=0:hudhide=1
:state=3,plrdistfurther=60:state=10
Regards
Panther65
The following script will display the hud then make it disappear when I hit the T key to pick the item up.
It then shows the hud and makes it disappear when I hit the T key again to drop the item.
I feel that I am getting closer.
;Artificial Intelligence Script
;written by Panther1965
;Header
desc = show custom hud while holding object
;Triggers
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\user\Temphud1.jpg,hudname=a1,hudhide=1,hudmake=display,state=10
:state=10,plrdistwithin=40:state=1
:state=1,plrdistwithin=40,scancodekeypressed=20:localvar=1,setvar=1,state=2
:state=2,varequal=1,plrdistwithin=40:hudshow=a1
:state=2,scancodekeypressed=20:localvar=1,setvar=0,state=3
:state=3,varequal=0,plrdistwithin=40:hudfadeout=a1,state=10
Regards
Panther1965