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 / How would I code these things?

Author
Message
trakmiro
14
Years of Service
User Offline
Joined: 26th Jul 2010
Location:
Posted: 11th Nov 2010 17:59
I need a bit of help with a few things.

First, I need a script that strips the player of his weapons.

Next, I need to know how to get music to change once when you walk in a zone. I tried using just a sound zone, but that's positional and the music fades after walking a certain distance away. I tried using the script to change the music in a certain zone, but every time I walk in that zone it makes the music start over.

If you didn't feel like reading that, I need to know how to make music or voiceovers trigger once without having them fade to silence when I walk away.

And finally, I've scanned the help documents time and time again, but I simply cannot figure out how to "extend" a zone (for lack of a better word). What I mean is how to make a single zone extend over many grid squares.
---
If anyone can help with this, please do so quick!
zeza
16
Years of Service
User Offline
Joined: 27th Jun 2008
Location:
Posted: 11th Nov 2010 20:34
Quote: "First, I need a script that strips the player of his weapons."

Their is a new command that is in v1.17 called resetplrweapons from airmod

Quote: "how to "extend" a zone (for lack of a better word). What I mean is how to make a single zone extend over many grid squares."

This is done by holding shift while the triggerzone is selected

I'd change the world, but I don't have the source code
R.I.P. heltor, we will miss you
Seth Black
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 11th Nov 2010 21:02
Quote: "...I need a script that strips the player of his weapons..."


...this will work:



Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 11th Nov 2010 23:16 Edited at: 11th Nov 2010 23:20
Quote: "I tried using just a sound zone, but that's positional and the music fades after walking a certain distance away. I tried using the script to change the music in a certain zone, but every time I walk in that zone it makes the music start over."

Use an entity, and set it's ALWAYS ACTIVE to YES so the distance won't matter.
Edit the script to only play the music once by going to another state, or use a variable as a flag to note when it has changed.
If the variable=0 then no change and the music action wouldn't happen.
If the variable=1 then the music was playing the other song so we would call the music action.
You would also change the variable back each time the music action happened so the next zone would know to change it again when the player enters.
So, the other zone would act the opposite...
If the variable=1 then no change and the music action wouldn't happen.
If the variable=0 then the music was playing the other song so we would call the music action.

That way, each zone would only change the music if it were playing the other song, which would prevent the reset if that song was already playing.

   Conjured Entertainment

 WARNING: Intense Madness

Login to post a reply

Server time is: 2024-11-24 17:06:09
Your offset time is: 2024-11-24 17:06:09