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 / Pickup Script, Hud then shows for 5 seconds assistance

Author
Message
Johnski
14
Years of Service
User Offline
Joined: 23rd Dec 2009
Location: Norfolk, UK
Posted: 27th Mar 2013 13:42
I need assistance on a Script i am making, this is it so far:



I am trying it so i pickup an item (in this case a peice of paper) then a HUD shows for 3-5 seconds then fades out. I cant get it to remain on the screen for little over 1 second. Any ideas? Thanks!

Corno_1
14
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 27th Mar 2013 13:52 Edited at: 27th Mar 2013 13:53
Your mistake is very easy:
in this line:
:state=10,plrdistwithin=40:state=1,playertake,coloff,plrsound=audiobank\misc\ping.wav,hudshow=itemprompt,hudfadeout=itemprompt
you show a hud(hudshow) and immediately fade it out(hudfadeout)
Then you start no timer!!! and you do not go to state=12, you go to state=1

Correct version:




Johnski
14
Years of Service
User Offline
Joined: 23rd Dec 2009
Location: Norfolk, UK
Posted: 27th Mar 2013 13:55
Thanks Corno_1 you saved the day




-Johnski

ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 27th Mar 2013 16:02
Quote: "hudhide=4000"

???

Login to post a reply

Server time is: 2024-11-23 16:51:10
Your offset time is: 2024-11-23 16:51:10