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 / question to BlackFox about one of his scripts

Author
Message
TIMON
13
Years of Service
User Offline
Joined: 28th Aug 2011
Location: France
Posted: 4th Jun 2012 17:33
Hi blackfx

it is about a script example on how to view a hud by pressing a key
I got your following script:



You said
Quote: "This script is attached to a trigger zone, which is spawned when the player picks up a map in a level. The player can then press the M key to scroll through and view the multiple map huds."


But I did not understand it! How do I use this script if I pick up a map, where to put it? Thanks
BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 4th Jun 2012 17:59 Edited at: 4th Jun 2012 18:00
Here is what I do to use the map script and where/how to activate and use it:

1. Place a map entity the player will pick up.
2. In the map properties, put the name of the trigger (ex: trigger-map) in the IfUsed field.
3. Edit the pick-up script for the map entity to ensure "activateifused=1" is in the script, which is used to activate the trigger. For example:



4. Place a trigger right close to where the player picks up the map. Right-click to edit the properties. Assign the script I made in the main, and change the start script to "appearifactivate.fpi". Also remember to name it to the same name you used in step 2 (ex: trigger-map).

When the player picks up the map, the trigger is activated and thus you can use the map script to view the map.


Twitter: @NFoxMedia
TIMON
13
Years of Service
User Offline
Joined: 28th Aug 2011
Location: France
Posted: 4th Jun 2012 23:18
thanks I understood now, but I don't have appearifactivate.fpi in my scriptbank can u send it to me please
BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 5th Jun 2012 00:08 Edited at: 5th Jun 2012 00:09
Here you go.

appearifactivate.fpi- used to activate a trigger if activating via entity IfUsed field as explained above.




Twitter: @NFoxMedia
TIMON
13
Years of Service
User Offline
Joined: 28th Aug 2011
Location: France
Posted: 5th Jun 2012 01:50
Thanks

Login to post a reply

Server time is: 2024-11-24 00:32:06
Your offset time is: 2024-11-24 00:32:06