Yes, this is very simple to do.
I'll use the "Door Use" entity as an example.
You'll see in it's properties that the Main AI used for it is the "dooruse.fpi" script.
Let's go into that script and take a look at WHY that hud is being shown...
When we open it up we see the following code:
;Artificial Intelligence Script
;Header
desc = Use Door (Push Open and Push Closed)
;Triggers
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecoretextpressentertouse.tga,hudname=usedoorprompt,hudhide=1,hudmake=display,state=10
:state=10,plrdistwithin=60:hudshow=usedoorprompt,hudfadeout=usedoorprompt
:state=10,plrdistwithin=60,plrusingaction=1:activate=2
:state=10,activated=2:state=1,setframe=0,sound=$0
:state=1:incframe=0
:state=1,frameatend=0:state=2,coloff
:state=2,plrdistwithin=60,plrusingaction=1:activate=0
:state=2,activated=0:state=3,sound=$1,colon
:state=3:decframe=0
:state=3,frameatstart=0:state=10,setframe=0
;End of Script
I'm gonna break it down to you very simply so you can have an easier understanding of what's going on:
First line where state=0 basically loads the hud image under the name "usedoorprompt" and then hides it for later use.
Second line where state=10 basically checks to see if the player is within 60 units of the door entity. If the player is, then it will run these two commands which I will elaborate on:
hudshow=usedoorprompt
This command will force the hud image named "usedoorprompt" to be shown at the screen coordinates that it was loaded to. (In this case the hud is at 50% of screen width and 90% of screen height) Take note that the hud will REMAIN shown until told to fade away or be hidden.
hudfadeout=usedoorprompt
This command will cause the hud image to fade out and THEN be hidden. It is being used on the same line as the show command which can be a little confusing to some people. Let me explain. This line will always be run constantly while the player is within the distance being checked for (60 units) and as such will constantly be shown then faded out. But why don't we see it being faded all the time? The answer is: We do! But the fadeout counts down the alpha value every loop, and every loop the show command renews that alpha value back to 100%!!! And so, the fadeout command does not have enough time to completely fade it out before it's being shown again! However, once the player steps out of the distance being checked for (60 units), the fadeout command will then continue to run and fade it out completely, as intended.
So how do we stop this? Simple... delete the second line that shows and hides the hud then change the first line to this:
Save it, then test your game! The hud should not be shown as normal.
Please keep in mind that you just replaced the default dooruse.fpi, so all usable doors will act like this. If that's what you want, then great! It sure does save time having to go into the properties for every usable door you want to make, but I would make a habit out of backing up the original for later use, just in case.
Hope that mini tutorial helped you and others out!
The one and only,
~PlystirE~
Dammit, Jim! I'm a programmer not a graphic designer!!!
(P)suedo code (L)inguist, (Y)ou (Sti)ll (R)eap (E)verything