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 pick up script

Author
Message
TTEGames
15
Years of Service
User Offline
Joined: 19th Feb 2009
Location:
Posted: 22nd Feb 2009 01:58
Is there a script that allows you to pick up a weapon by pressing a button so I dont walk into my weapons room and pick up just about ever damn weapon in there its so annoying
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 22nd Feb 2009 02:38
Well, if you made a script to require a button press to pick up a weapon and used that script for all your weapons, then pressing that button will pick up ALL of the weapons nearby anyway.

Anyway, to answer the question:
Add "scancodekeypressed=X" condition to the line of your weapon script that also checks for distance. Replace the "X" with the number of the button you want the user to press to pick up the weapon.


The one and only,


Pride
16
Years of Service
User Offline
Joined: 22nd Dec 2007
Location: Eastern USA
Posted: 22nd Feb 2009 03:21
If you at least attempt to make one, I'll give u mine

TTEGames
15
Years of Service
User Offline
Joined: 19th Feb 2009
Location:
Posted: 22nd Feb 2009 03:52
Ply when you say type the number of the button you want to use what do I have to put for the letter "P" just P?
TTEGames
15
Years of Service
User Offline
Joined: 19th Feb 2009
Location:
Posted: 22nd Feb 2009 05:06
Hey guys is the right I just need to know what to replace the "X" with.

This it what I have (see pic)

Attachments

Login to view attachments
heyufool1
15
Years of Service
User Offline
Joined: 14th Feb 2009
Location: My quiet place
Posted: 22nd Feb 2009 22:25
you have to replace X with the scancode number of what ever button you want to press to pick up the weapon.

http://www.barcodeman.com/altek/mule/scandoc.php
scroll down to the bottom to find it
TTEGames
15
Years of Service
User Offline
Joined: 19th Feb 2009
Location:
Posted: 22nd Feb 2009 23:05
Hey guys Ive got this but it doesn't work can you help?
Pride
16
Years of Service
User Offline
Joined: 22nd Dec 2007
Location: Eastern USA
Posted: 22nd Feb 2009 23:29 Edited at: 22nd Feb 2009 23:30
That table is incorrect. Here's the one from the Official Community Guide made by Nickydude.


Attachments

Login to view attachments
TTEGames
15
Years of Service
User Offline
Joined: 19th Feb 2009
Location:
Posted: 25th Feb 2009 00:58
ARGH!

Can some one help please I keeping on thinking I have it the script but its not working I go over to the weapo and it just gets picked up were do I put the 'scancodekey=X' and don't worry I am replacing the 'X'.
Reighn
17
Years of Service
User Offline
Joined: 14th Mar 2007
Location:
Posted: 3rd Mar 2009 23:26
Hmm, im no master scripter, but on state:0 you tell it to go to state:10, shouldnt it go to state:2?

;Artificial Intelligence Script

;Header

desc = Weapon Pickup

;Triggers

:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\pickedupaweapon.tga,hudname=weaponprompt,hudhide=1,hudmake=display,state=10
:state=10,plrdistwithin=40:state=1,playertake,coloff,rundecal=-1,plrsound=audiobank\items\pickupweapon.wav,hudshow=weaponprompt,hudfadeout=weaponprompt
;state=2:state=3,playerdrop,colon,plrsound=audiobank\items\pickup.wav
:state=3,plrdistfurther=65,scancodekeypressed=26:state=10

;End of Script

I wise man once said, "Im bringing sexy back".

Login to post a reply

Server time is: 2024-11-24 20:52:44
Your offset time is: 2024-11-24 20:52:44