Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Key Hud Image

Author
Message
SpyDaniel
18
Years of Service
User Offline
Joined: 4th Feb 2006
Location: United Kingdom
Posted: 14th Jun 2006 02:20
I dont have a working manual otherwise I would look at that.

I want the hud image of a key to stay on screen for longer. How can I do this? Also, how do I stop it from alpha fading upwards, I just want it to alpha fade.


Les Horribres
19
Years of Service
User Offline
Joined: 20th Nov 2005
Location: My Name is... Merry
Posted: 14th Jun 2006 03:59 Edited at: 14th Jun 2006 03:59
Quote: "I want the hud image of a key to stay on screen for longer. How can I do this? Also, how do I stop it from alpha fading upwards, I just want it to alpha fade."


What? Probally is built in... it is hudfadeout that you are talking about right? (similar at least). Food. You could try a series of images, or just use hudunshow... but not certain on simple alpha fade without the marquee.

P.S. Manual Download under Revial: Teh FAQ (Manual)

We all have our inner noob. Join the NJL, we have more fun!
I believe society is flawed; our notions on life, on child rearing, stem too far back to be of relevance in this day and time.
SpyDaniel
18
Years of Service
User Offline
Joined: 4th Feb 2006
Location: United Kingdom
Posted: 14th Jun 2006 04:13
Thanks for the manual pointer Merry. Urm, I ment I want the image that is shown when you pick up a key to stay on the screen for a set time, but ill get the manual if you dont reply in that time.


FredP
Retired Moderator
18
Years of Service
User Offline
Joined: 27th Feb 2006
Location: Indiana
Posted: 14th Jun 2006 04:44 Edited at: 14th Jun 2006 04:46
You might be able to add the the timergreater command.
For instance
state=10:hudshow=key,timergreater=1000,hudfadeout=key
That will keep the hud on the screen for longer.I don't know about the alpha fade.
I don't know if that is the exact syntax but you get the idea.
Of course,Merranvo is the expert and will surely smite me if I am wrong...lol.

Les Horribres
19
Years of Service
User Offline
Joined: 20th Nov 2005
Location: My Name is... Merry
Posted: 14th Jun 2006 07:04 Edited at: 14th Jun 2006 07:07
@I has Returned (as a Mod) [IHRAAM]
state=10:hudshow=key,timergreater=1000,hudfadeout=key

First you need to start with a colon... just a general rule. BUT, things like "timergreater" are conditions, they belong left of the second colon.

Second, yawn.

Third, there is an issue with timer... I recommend random= but it isn't exact so things change.

Fourth, you want to show the key first, then after x seconds make it go away.


Not as an insult, just as pointers...



Higgins, if hudfadeout is set to always move up, as I said using hudhide makes it go away.

:state=0:hudreset,hudx=50,hudy=50,hudimage=[path],hudname=key,hudhide=1,hudmake=display,state=1

:state=1,plrdistwithin=60:hudshow=key,plrtake,state=2
:state=2,random=20000:hudhide=key,state=3


looks right... hud might not dissapear, and it might be playertake instead of plrtake (will look up)

We all have our inner noob. Join the NJL, we have more fun!
I believe society is flawed; our notions on life, on child rearing, stem too far back to be of relevance in this day and time.
FredP
Retired Moderator
18
Years of Service
User Offline
Joined: 27th Feb 2006
Location: Indiana
Posted: 14th Jun 2006 08:26
Told you he'd smite me...lol.
Thanks,Merravno.
I don't normally use text huds so I wasn't sure.

SpyDaniel
18
Years of Service
User Offline
Joined: 4th Feb 2006
Location: United Kingdom
Posted: 14th Jun 2006 16:57 Edited at: 14th Jun 2006 19:59
Merry, I gave my key that script, but like you said, the hud did not dissapear and I did not pick up the key. Would I beable to give another entity a script which displays the hud, once and never shows it again? Could you help me with that also please?

**EDIT**

Merry, I fixed the problem I had.

I need your help on this now. I want the door which is locked in my level to not be usable after I stand in a trigger zone.

I gave the trigger zone this script for the AI Main script:

state=1:plrelevwithin=60,state=2
state=freeze

The above is all I have in the fpi file. But when I go back to the door after being in the trigger zone I can still use it. What did I do wrong?


Les Horribres
19
Years of Service
User Offline
Joined: 20th Nov 2005
Location: My Name is... Merry
Posted: 14th Jun 2006 20:36
plrelevwithin should be if the angle is X

add this to the doorkey.fpi
:activated=1:state=1000

now just change the name of the door...

and in the ifused field of the triggerzone have the doors new name.


MAKE SURE it is the original triggerzone script.



P.S. Yes, it is playertake... and it looks like there is a HUDFADEOUT

We all have our inner noob. Join the NJL, we have more fun!
I believe society is flawed; our notions on life, on child rearing, stem too far back to be of relevance in this day and time.

Login to post a reply

Server time is: 2024-11-22 14:00:44
Your offset time is: 2024-11-22 14:00:44