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 swap system in Project Green help.

Author
Message
darimc
17
Years of Service
User Offline
Joined: 19th Jan 2007
Location: Canada
Posted: 5th Nov 2009 02:12
Hey, I am using this script in Project Green and am assigning it to a weapon, can someone tell me why it won't drop the weapon? I thought "plrdrop" was fixed. If not, is there any command to replace this?



Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 5th Nov 2009 02:15
You're telling it to drop it and then immediately take it after that.


The one and only,


darimc
17
Years of Service
User Offline
Joined: 19th Jan 2007
Location: Canada
Posted: 5th Nov 2009 02:17
Hmm... I want it to drop that weapon and pick up the one on the ground, is that possible?

Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 5th Nov 2009 02:45
The setup would be different for how you want the player's inventory to be.

If the player should only have 1 weapon at a time, then it would be simple. However, if the player could have more than one weapon, it would become a little more complex.


Btw, I'm not a big fan of the "plrdrop" command, since the weapon you're dropping MUST have been picked up somewhere in that level, otherwise it wouldn't have a script to use in order to drop it.
(AKA, weapons taken from the LAST level won't be able to be dropped in the new level)


The one and only,


darimc
17
Years of Service
User Offline
Joined: 19th Jan 2007
Location: Canada
Posted: 5th Nov 2009 03:02
Oh, you wouldn't happen to have made a script which has a swapping system? If it's not already made, I won't bother pestering people for it. I am slowly learning this and thanks to you, I am now a little better at scripting . Thanks for your help Ply.

Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 6th Nov 2009 01:18
Sorry, I haven't done any sort of swapping system. The way I get rid of weapons that the player has is by simply deleting them permanently.


The one and only,


Login to post a reply

Server time is: 2024-11-25 07:59:25
Your offset time is: 2024-11-25 07:59:25