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 with a "Search Object" script.

Author
Message
darimc
17
Years of Service
User Offline
Joined: 19th Jan 2007
Location: Canada
Posted: 9th Aug 2009 04:23 Edited at: 9th Aug 2009 04:37
I have been toying with this search object script, trying to make it so I can search objects using a hud. I want it so that I press TAB and it displays the hud, and hides it when I let go. I want it to work only when I am in the trigger zone, but it won't. Here is what I have:



Help would be very much appreciated.

EGG HEAD OF DOOM
16
Years of Service
User Offline
Joined: 21st Sep 2008
Location: The Hacked Hospital Lobby
Posted: 9th Aug 2009 04:32
is this kind of like the objective system in Killzone 2?

darimc
17
Years of Service
User Offline
Joined: 19th Jan 2007
Location: Canada
Posted: 9th Aug 2009 04:37
No, I want to be able to search objects and learn about them by holding a TAB.

Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 9th Aug 2009 04:38 Edited at: 9th Aug 2009 04:42
I guess from the header that I had better help out on this.

You have 3 colons in state=0 (you can't have more than two), so the second one needs to be a comma.

Try this


As you can see, I just added your plrwithinzone=1 condition to the existing condition of the scancodekeypressed in state=1.
So, now they have to be in the zone and pressing the key for the HUD to show.

darimc
17
Years of Service
User Offline
Joined: 19th Jan 2007
Location: Canada
Posted: 9th Aug 2009 04:43
Thanks CE, I almost successfully edited a script. I will test it out now and tell you how it worked.

darimc
17
Years of Service
User Offline
Joined: 19th Jan 2007
Location: Canada
Posted: 9th Aug 2009 04:53
Thanks CE, it works! I am working on my scripting skills and hopefully soon I will have something worth giving away.

Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 9th Aug 2009 05:00
Cool.
Glad I could help.
The more you script the better you'll get, so keep at it.

Login to post a reply

Server time is: 2024-11-25 05:17:20
Your offset time is: 2024-11-25 05:17:20