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 / weapon choosing?

Author
Message
Replay the Master of Time
15
Years of Service
User Offline
Joined: 15th Dec 2008
Location: Everywhere at every given time
Posted: 1st Mar 2009 01:27
is there a way i can make the player able to choose what weapon to use at the start of the game?

Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 1st Mar 2009 01:54
You could script a weapon to only be picked up if a variable is equal to 0 (global var), then when the weapon GETS picked up (probably from the player pushing a key) it will set that variable to 1.

Now place your desired choosable weapons down and give them that script. The player should then only be able to pick up one of them.


The one and only,


Replay the Master of Time
15
Years of Service
User Offline
Joined: 15th Dec 2008
Location: Everywhere at every given time
Posted: 1st Mar 2009 02:01
thanks but what i mean is a menu at the start of the level and these are like special weapons that can't be picked up elsewhere

Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 2nd Mar 2009 05:35
In that case:

Make a triggerzone with a script to do the following
- Freeze the player in place
- Display menu huds giving choices for weapon pickups
- When player presses a choice key, have it activate that weapon entity
- After activating a weapon, have it hide the huds and unfreeze the player

Now just set up the weapon entities to spawn and place them on top of the player start marker. Also put the triggerzone on top of the player start marker.


The one and only,


Replay the Master of Time
15
Years of Service
User Offline
Joined: 15th Dec 2008
Location: Everywhere at every given time
Posted: 2nd Mar 2009 08:33
cool thanks, your always good with scripting plystire

Login to post a reply

Server time is: 2024-11-24 20:49:07
Your offset time is: 2024-11-24 20:49:07