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 / Just a script command question.......

Author
Message
light mod
13
Years of Service
User Offline
Joined: 26th May 2011
Location:
Posted: 15th Jun 2011 13:02 Edited at: 25th Apr 2014 09:35
manan adive croair spt. whiis le this aent......

;Artifi ellnce pt

;Har

;nd f Scpt

I will ha the hud t on.
ard.
Ched80
14
Years of Service
User Offline
Joined: 18th Sep 2010
Location: Peterborough, UK
Posted: 15th Jun 2011 13:31 Edited at: 15th Jun 2011 13:41
You're almost right.

Edit: First point should be to store your images in the correct location. Store them in your own folder within the gamescore/huds folder so that FPSC can access them.

You need to define all your HUDs you will use at the top of your script first. So each HUD will be something like:

Quote: ":state=0:hudreset,hudx=50,hudy=50,hudhide=1,hudname=normalXhair,hudimage=gamescore/huds/crosshairs/large crosshair.png,hudtype=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudhide=1,hudname=jumpingXhair,hudimage=gamescore/huds/crosshairs/small crosshair.png,hudtype=1,hudmake=display
:state=0:hudreset......and so on for each HUD
:state=0:state=1"


The last line needs to be :state=0:state=1 to prevent the HUDs being defined again and again.

You will probably need a generall line to hide all the HUDs except for the normal cross hair. something like:
Quote: ":always:hudunshow=jumpingXhair,etc."


Then you just need to call up the hud when the key is pressed. something like:

Quote: ":keypressed=17 1:hudshow=jumpingXhair,hudunshow=normalXhair"


[url="http://raptr.com/No_Turn_Right?src=em_forum"][/url]
light mod
13
Years of Service
User Offline
Joined: 26th May 2011
Location:
Posted: 16th Jun 2011 01:18
thank you.
light mod
13
Years of Service
User Offline
Joined: 26th May 2011
Location:
Posted: 16th Jun 2011 02:15 Edited at: 25th Apr 2014 09:36
.
maho76
13
Years of Service
User Offline
Joined: 31st May 2011
Location: universe-hub, playing the flute
Posted: 17th Jun 2011 16:56 Edited at: 17th Jun 2011 16:58
search for "crthud", a programm that places your png in the right folder and write the scripts to show the huds into your scriptbankso you got sample-scripts (with keytrigger, main-hud and fading huds for text or graphics).

i think Doomster posted a link once.

edit: aah, here it is:

http://forum.thegamecreators.com/?m=forum_view&t=155366&b=21&msg=1816702

Login to post a reply

Server time is: 2024-11-24 09:08:49
Your offset time is: 2024-11-24 09:08:49