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 / PRO Scripters help me please !

Author
Message
3Dmajid
16
Years of Service
User Offline
Joined: 16th Dec 2007
Location: IRAN / TEHRAN
Posted: 14th Jan 2009 21:16
How i can to make this that in the game when player press a key like "M" then show a hud like a LevelMap. my hud is .jpg.

The life is standby ... So decide for you'r target and then you'll see that you are arrived and get it.
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 14th Jan 2009 21:39 Edited at: 14th Jan 2009 21:57
Here is a script from Page 75 of The Offcial Community Guide To FPSC, which is located in your FPSC Docs folder...

Show objectives on screen

By Silent Thunder and Conjured Entertainment
This script displays the objectives (an image – “objectives.tga” which you must create) when you hold the TAB key and disappears when you let off of it.



Change the scancodekeypressed to the proper value for your 'M' key for your keyboard. (different countries have different scancode assignments)
For the US keyboards it should be the value of 50.
You also want to change the HUD's path and name to reflect your image.
You may also want to change the hudy=90 to hudy=50 to center the image, so your script might be...

Quote: "

;Objectives on Screen Script
; Script by: Silent Thunder
; Edited by Conjured Entertainment

desc = Display a LevelMap via the M key

;Triggers

:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore/huds/levelmap1.jpg,hudname=levelmap1,hudhide=1,hudmake=display,state=1

:state=1,scancodekeypressed=50:state=2
:state=1:hudunshow=levelmap1

:state=2:hudshow=levelmap1,state=1

;End of Script

"



I put in bold the items that were modified for your case.
Feel free to modify it more.

Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 14th Jan 2009 22:50
Unhelpful Titles

Please do not simply write "Noob Question", "I am a newb", "One Noobie Question", "A question", "Please help", "This isn't working" or anything similar as the title of your post. We have a search facility, and meaningless titles do not help others find answers to their questions. It will also help you to get quicker responses if people have an idea of your thread content.

3Dmajid
16
Years of Service
User Offline
Joined: 16th Dec 2007
Location: IRAN / TEHRAN
Posted: 15th Jan 2009 08:59
Thanks for you'r help.
FPSC Moderator please pardon me.

The life is standby ... So decide for you'r target and then you'll see that you are arrived and get it.
3Dmajid
16
Years of Service
User Offline
Joined: 16th Dec 2007
Location: IRAN / TEHRAN
Posted: 15th Jan 2009 09:02
hey ... thanks for code but i think that i should select this code on a Trigger Zone ... yes ?
But my question is this that how I can to do this script in the game and don't need to a Trigger Zone.

The life is standby ... So decide for you'r target and then you'll see that you are arrived and get it.
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 15th Jan 2009 09:04
Triggerzones are always active, meaning their scripts will be functional no matter where you are on the map. That makes them good for these types of scripts.


The one and only,


3Dmajid
16
Years of Service
User Offline
Joined: 16th Dec 2007
Location: IRAN / TEHRAN
Posted: 15th Jan 2009 20:30
it means that i put a trigger zone and select this script for it ... then in every place of game if player hold a key like "M" will display hud ?

The life is standby ... So decide for you'r target and then you'll see that you are arrived and get it.
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 15th Jan 2009 20:44 Edited at: 15th Jan 2009 20:50
It should as long as you have edited the image's path and file name to match your image...try it.

Any entity will do though as long as it is..

Always Active = Yes       (this is so it will work anywhere you are in map)

Strength = 0                  (this is so it cannot be destroyed...invulnerable)

Static Mode = No           (it has to be dynamic to run the script)

Login to post a reply

Server time is: 2024-11-24 18:38:24
Your offset time is: 2024-11-24 18:38:24