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 / zones give items?>>>

Author
Message
Acolyte Entertainment
19
Years of Service
User Offline
Joined: 28th Dec 2004
Location: Oregon, US
Posted: 19th Mar 2005 11:03 Edited at: 21st Mar 2005 05:26
does any one know how or have a script that makes it when you walk into a zone then It puts a key in your inventory. Like lets say I want is so when you walk into a sound zone and the guy says "You are super cool! and here is your key!" and then if I wanted to get that key nomatter how close I was to him.

-Thanks

Attachments

Login to view attachments
jasuk70
21
Years of Service
User Offline
Joined: 3rd Dec 2002
Location: Hemel Hempstead
Posted: 19th Mar 2005 20:52
I dont think this is possible. I think it comes under the same catagory as people dropping things when they Die, Though it does sound like a good addition to the game as other people have also mentioned something similar, i.e. making an object "Hidden" until somethine in the script has made it un-hidden. (Though thinking about it, maybe playing with the INIT script for an entity may be the key here, need some playing around with)

Jas

----
"What is this talk of 'release'? Klingons do not'release' software. It escapes leaving a bloody trail of developers and quality assurance people in its wake!"
ctm
19
Years of Service
User Offline
Joined: 25th Feb 2005
Location:
Posted: 21st Mar 2005 01:29 Edited at: 21st Mar 2005 01:40
I tried it and it seems to work.
If you enter a Trigger Zone you hear a soundfile and get a key.
Here is what i did:

1.
I made a key and named it KeyInvisible.

2.
I attached this Init script to it:



It makes the Key appear but makes it invisible.

3.
I attached this Main script to it:



The script gives the Key to the Player if he enters the Trigger Zone.
I commented one line out because i dont know what rundecal=5 is good for.
It seems to work without it.

4.
I added a Trigger to the level and attached this Main script to it:



For the test i used the targetsighted sound.
You will have to replace that with your sound.

5.
I typed the name of the Key (KeyInvisible) in the If Used field of the Trigger Zone.
And last a typed the name of the Key (KeyInvisible) in the Use Key field of the door the key is needed for.

I placed the Key near the Trigger Zone.
It does not matter if it is on the floor or a table because it is invisible and there is no collision.

Hope that helps.
Acolyte Entertainment
19
Years of Service
User Offline
Joined: 28th Dec 2004
Location: Oregon, US
Posted: 21st Mar 2005 05:29
im not at my FPS-creator machine right now, I have a disk with it on
it but im not sure if I can install it on the comp. or if it can
only be on one. But once I get back to my (alienware) my home comp.
I will try it. But if I can have it on more than one comp. Then i'll
try it here.

thanks,
-smartguy


Acolyte Entertainment
19
Years of Service
User Offline
Joined: 28th Dec 2004
Location: Oregon, US
Posted: 21st Mar 2005 05:34
I can't edit for some reason (sorry for double posting, but I had
to)

@ctm you are an amazing person you can win a challenge envolving money,
you have an incredibal view at creating FPS games and you are an incredible scripter
P.S. I can't wait to try your script...
-smartguy

[img]
http://forum.thegamecreators.com/xt/xt_apollo_pic.php?i=527017[/img]

Login to post a reply

Server time is: 2024-11-21 12:35:59
Your offset time is: 2024-11-21 12:35:59