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 / Creating a clickable HUD

Author
Message
jonboris
15
Years of Service
User Offline
Joined: 1st Jan 2009
Location:
Posted: 5th Jan 2009 02:33
Hi all, I'm looking for some advice on creating a clickable 'interface' for when a player uses a computer terminal in my game.

I have two leads for doing this:

a) creating a HUD graphic and using the hudmake=pointer command somehow?

or

b) teleporting the player to an area set out like a computer interface and enabling the player to 'click' on items by shooting them with an invisible gun.

In both versions I think having roll-over states for the buttons is important.

For me to get option B to work (my most promising lead so far) it would be good if there was a condition that checked to see if the player was targeting an entity.

All suggestions gladly welcomed
Dar13
16
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 5th Jan 2009 20:58
settargetreticle would work if you are using Ply's Mod v1.07. otherwise I'm just not sure what to do in your position.

I know not with what weapons WWIII will be fought but WWIV will be fought with sticks and stones-Albert Einstein
woot for toot
16
Years of Service
User Offline
Joined: 13th Apr 2008
Location: a box
Posted: 6th Jan 2009 22:16
Dar13 you sure are fond of plys mod , its in all your reccomendations

fear my udder of doom!
Pride
16
Years of Service
User Offline
Joined: 22nd Dec 2007
Location: Eastern USA
Posted: 8th Jan 2009 02:38
Well hey, you can script a butt-load in Ply's Mod.

- You know you're curious
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 8th Jan 2009 20:20
Technically you can make one of these without a Mod, however, I recall running into issues with the official versions way of doing things. If a HUD is hidden, it can still be clicked, which means that you will still be able to click buttons previously made even though they aren't visible.


The one and only,


Dar13
16
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 8th Jan 2009 21:55
@woot for toot
well it's just that everything people want these days can be done with Ply's Mod. And it's awesome.

I know not with what weapons WWIII will be fought but WWIV will be fought with sticks and stones-Albert Einstein

Login to post a reply

Server time is: 2024-11-24 18:34:26
Your offset time is: 2024-11-24 18:34:26