Thank you The Storyteller 01 but I have a problem with it.
When the first time my pointer goes over the door the hud became appear but after that it wont disappear anyway.
If it was like C++ I could use If and Else like this:
If(pickobject=1)
hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\pointer.tga,hudname=usedoorprompt,hudmake=display
else hudreset,hudhide=1
But it's not like C++ and I can't do it right.
Here is my code(if anyone could fix it please put it here):
;Artificial Intelligence Script
by Payam
;Header
desc=Press Enter to teleport to the trigger in if used
;Triggers
:state=0:state=1
:state=1,plrdistwithin=80,pickobject=1,plrusingaction=1:plrmoveifused
:state=1,pickobject=1:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\pointer.tga,hudname=usedoorprompt,hudmake=display
:state=1,pickobject=0:hudreset,hudhide=1
;End of Script
Have our guns was a mistake!!!
I am PaYaM