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 / Displaying hud in zone (question).

Author
Message
darimc
17
Years of Service
User Offline
Joined: 19th Jan 2007
Location: Canada
Posted: 23rd Mar 2011 02:33
Hey guys, I have been working on a project for school and decided to use FPSC for it. I am almost finished, the only thing I require is a working script to display a hud in a zone, every time you walk in it. Please note that I have searched and none of the scripts seem to working. They either show nothing at all, or display the image but don't fade away. It may be the version I am using, which is V1.17. Help on this would be greatly appreciated as I am somewhat pressed for time and can't fiddle around with the scripts right now.

BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 23rd Mar 2011 02:50
Something like this? The first one shows a hud for 5 seconds (etimergreater=5000) and then the hud is removed. The script will loop back once the player leaves the zone.



Or, if you want the player to press a key to make the hud disappear (in the following the ENTER key is used [scancodekeypressed=28]), you can do this:



Hope that helps get you started.

- BlackFox

The function of good software is to make the complex appear to be simple.
Michael Thompson
16
Years of Service
User Offline
Joined: 15th Aug 2008
Location: Behind you (if not, in australia)
Posted: 25th Mar 2011 17:10
Is this what you are looking for? (hud shows while player is in area, disappears when player leaves area)



http://www.flashstargamecreations.webs.com
darimc
17
Years of Service
User Offline
Joined: 19th Jan 2007
Location: Canada
Posted: 27th Mar 2011 11:01
Thanks for the help guys, reading your scripts, I managed to get it working.

Scurvy Lobster
18
Years of Service
User Offline
Joined: 3rd Mar 2006
Location: Denmark
Posted: 30th Mar 2011 12:20
Drop Dead Fred: it's a standard script so no need to ask for permission. Actually there are loads of scripts included with FPSC that work in similar ways. Take a look at dooruse.fpi for instance.

Login to post a reply

Server time is: 2024-11-24 12:12:00
Your offset time is: 2024-11-24 12:12:00