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 / Trouble with weapon pickup that incorporates gui-x9

Author
Message
BeauPratten
14
Years of Service
User Offline
Joined: 16th Feb 2010
Location: Newy, Australia
Posted: 23rd Apr 2011 16:50 Edited at: 24th Apr 2011 11:26
Hey all
For the game I'm working on I wanted to give guns a new script that incorporates gui-x9 into them...problem is, it won't work.


It gets up to pressing e then it freezes.
I think it might have something to do with the pausegame action but this is my first proper script so I'm not sure, can someone help me fix it please?

What I'm trying to make the script do is:
When you're near the gun pickup it shows a hud that says "Press e to examine", when you press e the game pauses and a hud that has the gun specs on it shows in the middle of the screen as well as a "yes" and "no" button.
If you click the yes button you take the gun and if you press the no button you just leave it.

BeauPratten
14
Years of Service
User Offline
Joined: 16th Feb 2010
Location: Newy, Australia
Posted: 24th Apr 2011 11:11 Edited at: 24th Apr 2011 11:23
Anyone? Can anyone help me with fixing it?
So far I've managed to make it show the yes and no buttons before freezing...

xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 26th Apr 2011 20:45
Isn't "e" hard coded to the "Peek" action? If you disable peeking, does it disable the "e" key?

BeauPratten
14
Years of Service
User Offline
Joined: 16th Feb 2010
Location: Newy, Australia
Posted: 27th Apr 2011 10:26
no peeking is just set to a different key because it's not being used...

Ched80
14
Years of Service
User Offline
Joined: 18th Sep 2010
Location: Peterborough, UK
Posted: 27th Apr 2011 11:09
It may be the "pausegame" part as I have had similar problems with GUI x9.

One thing i would try is to avoid creating HUDs on the same like as "pausegame". My advice would be to build all the HUDs, once at the top of the script, and only show the huds when 'e' is pressed.

This may help, but i'm not totally sure.

[url="http://raptr.com/No_Turn_Right?src=em_forum"][/url]

Login to post a reply

Server time is: 2024-11-24 09:10:20
Your offset time is: 2024-11-24 09:10:20