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 / Hud Display problem

Author
Message
SpyDaniel
18
Years of Service
User Offline
Joined: 4th Feb 2006
Location: United Kingdom
Posted: 16th Nov 2006 00:14
Iam having a problem getting a hud to show. Iam using this script:



attaching it to an entities AI Main script, but when I get close, no hud shows.

Can any one help?

xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 16th Nov 2006 00:25
You last line is the problem.

:state=1:hudimagefine=gamecore\text\text.DDS

should be:

:state=1:hudshow=keyprompt

Everything else looks right.

Best.

The forum provides a means to hide our true identity. Too bad we always screw up and let it be seen.

SpyDaniel
18
Years of Service
User Offline
Joined: 4th Feb 2006
Location: United Kingdom
Posted: 16th Nov 2006 00:55
Thanks, xplosys, I got the hud to be displayed, but it wont go away now, can you help with that? I tried making a new state to make it fade out, but then nothing showed up.

xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 16th Nov 2006 00:57
:state=1:hudshow=keyprompt,hudfadeout=keyprompt

Best.

The forum provides a means to hide our true identity. Too bad we always screw up and let it be seen.

SpyDaniel
18
Years of Service
User Offline
Joined: 4th Feb 2006
Location: United Kingdom
Posted: 16th Nov 2006 02:59
I have this:

;Artificial Intelligence Script

;Header

desc = within distance run hud

;Triggers

:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\text.DDS,hudname=a1,hudhide=1,hudmake=display,state=10
:state=10,plrdistwithin=40:state=1
:state=1:hudshow=a1,hudfadeout=a1

;End of Script

--

but the hud still does not go?

xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 16th Nov 2006 03:23
Quote: "but the hud still does not go?"


I think it does but because state=1 continues to be true, it displays again and again. Try changing the state.

In theory, ":state=1:hudshow=a1,hudfadeout=a1,state=0" should continue to show the hud as long as plrdistwithin=40 is true and ":state=1:hudshow=a1,hudfadeout=a1,state=2" should show the hud only once.

Best

The forum provides a means to hide our true identity. Too bad we always screw up and let it be seen.

SpyDaniel
18
Years of Service
User Offline
Joined: 4th Feb 2006
Location: United Kingdom
Posted: 16th Nov 2006 13:06
I got it working by using this, that I took from Bens script, which wouldnt work on its own, so now this script I have works .

:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\text\text.DDS,hudname=a1,hudhide=1,hudmake=display,state=10
:state=10,plrdistwithin=40:state=1
:state=1:hudshow=a1,hudfadeout=a1
:state=1,plrdistwithin=60,plrusingaction=1:state=40
:state=1,plrdistfurther=60:state=40

xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 16th Nov 2006 14:42
Great. I'm glad you got it working.

Best.

The forum provides a means to hide our true identity. Too bad we always screw up and let it be seen.

SpyDaniel
18
Years of Service
User Offline
Joined: 4th Feb 2006
Location: United Kingdom
Posted: 16th Nov 2006 15:45
I found out if you pick up a dynamic object with this script attached, the hud will display untill you throw it away. I thought that was pretty cool, you could make a scroll object and have a player carry it around to view a map, instead of going back and forth.

filya
18
Years of Service
User Offline
Joined: 23rd Aug 2006
Location: USA
Posted: 17th Nov 2006 16:27 Edited at: 17th Nov 2006 16:27
thats an interesting find Higgins
And I guess 'pick up' here means picking up..like a chair...and not picking up like a key or healthpack?

edit : duh me! Ofcourse you cant throw the key or healthpack once you get it. So it has to be the other.

-- n00b at playing games...and now at making em too :p --
SpyDaniel
18
Years of Service
User Offline
Joined: 4th Feb 2006
Location: United Kingdom
Posted: 17th Nov 2006 16:29
Yes I mean pick up an object you can carry around, like a chair.

--

On another note, the script doesnt work again. It did on my old pc, but not on my new pc, weird.

filya
18
Years of Service
User Offline
Joined: 23rd Aug 2006
Location: USA
Posted: 17th Nov 2006 19:29
ha ha ....dont worry...its just FPSC

-- game dev is fun...but taking up too much time --
Phlum
18
Years of Service
User Offline
Joined: 30th Jul 2006
Location:
Posted: 23rd Dec 2006 12:58
What do you call the script? Can I use it commercially?

[center]

Login to post a reply

Server time is: 2024-11-23 07:20:00
Your offset time is: 2024-11-23 07:20:00