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 / Help whit a script!!! Hud show when pickup item\ key when pressing ENTER

Author
Message
Jonez
User Banned
Posted: 24th Jan 2010 15:30
I have a script where i pick up a key or an item by pressing ENTER and i wanna show a hud when the key or an item is picked up.
Broblem is when im near the key or an item that i wanna pick up the hud appears. And when i pick it up the hud goes away. After that if im going to pick next key it works like it should be.
the script is here. Can someone fix it.

desc = ENTER KEY Weapon Pick Up

;When player gets within 40 units of weapon pickup, custom HUD TEXT will display.
;If player presses ENTER KEY, weapon will be picked up, and added to player's weapon inventory.

;Triggers

:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\pickedupakey.tga,hudname=keyprompt,hudhide=1,hudmake=display,state=10
:state=10,plrdistwithin=40:hudshow=keyprompt,state=12
:state=12,plrdistfurther=40:hudunshow=keyprompt,state=12,state=10

;Player Press ENTER KEY
:state=12,scancodekeypressed=28:hudunshow=keyprompt,playertake,coloff,rundecal=-1,plrsound=audiobank\misc\key.ogg,hudshow=keyprompt,hudfadeout=keyprompt
:state=1:rundecal=5

;End of Script::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
The Master Dinasty
16
Years of Service
User Offline
Joined: 14th Sep 2008
Location: Valhalla
Posted: 25th Jan 2010 19:03 Edited at: 25th Jan 2010 19:08
These are the mistakes iv`e noticed....

Quote: "
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\pickedupakey.tga,hudname=keyprompt,hudhide=1,hudmake=display,state=10
:state=10,plrdistwithin=40:hudshow=keyprompt,state=12
:state=10,plrdistfurther=40:hudunshow=keyprompt,state=10

;Player Press ENTER KEY
:state=12,scancodekeypressed=28:hudunshow=keyprompt,playertake,coloff,rundecal=-1,plrsound=audiobank\misc\key.ogg,hudshow=keyprompt,hudfadeout=keyprompt

"


Iv`e changed some states, because they dindt make sense like runddecal-state=1 but state one was never used, and (i think) you cannot run two states at the same time, thus it would stop you`re script to work, and you`re "plrdistwithin=40" is not units, there is another command who uses units. This is a actual distance, try the script it should work (i dindt bother to open up the Fpsc Script thingy )

Quote: "
Broblem
"


LOL? Use a google translator my friend if you have language problems! And i dindt quite catch you`re broblem could you try to say it again?


-Massap2

We are the magnificent Masters, builders of pyramids.

Login to post a reply

Server time is: 2024-11-25 03:54:02
Your offset time is: 2024-11-25 03:54:02