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 / Is there any way to destroy the weapon from your character?

Author
Message
Belacios
7
Years of Service
User Offline
Joined: 11th Nov 2012
Location: Otherworld
Posted: 30th Jan 2014 20:51
Is there any script for it?
I want to destroy our character weapon, making impossible to use it unless you get another one.

Thanks for the attention.

http://www.indiedb.com/games/sem-sada-no-way-out
ncmako
7
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 31st Jan 2014 20:22
Hi Belacios
If I understand you correctly, you want the character
weapon once dropped not be able to pick up? If so, in
the characters .fpe file look for "cantakeweapon=x"
Change =1 to =0. If its not there, add it (cantakeweapon=0)
Unless you mean the "players" weapon? That would be different.

You know you're a bad gamer when you're able to run out of infinite lives.
Disturbing 13
14
Years of Service
User Offline
Joined: 12th Apr 2005
Location: Murder Capital of the World
Posted: 1st Feb 2014 08:34 Edited at: 1st Feb 2014 08:35
I think he means more like structural integrity. Like only being able to use a bat so many times before it cracks and becomes useless. The only way I can think of doing such a thing would be to give the weapon the ability to use ammo and only containing a few shots. When you pick up another weapon it would reload the 'ammo'. Hope that helps.

Model pack 66-99 high quality items...cheap!!
"Who loves ya baby!"
Corno_1
9
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 1st Feb 2014 20:24
Here are two solutions so I give my solution also

there is a scripting action:
disablefirebutton=1 - disable fire a weapon
disablefirebutton=0 - able to fire a weapon

Corno_1

Games make the world better
Belacios
7
Years of Service
User Offline
Joined: 11th Nov 2012
Location: Otherworld
Posted: 4th Feb 2014 20:19 Edited at: 4th Feb 2014 20:20
Thanks a lot for the answers, but I needed to be more specific, sorry about that, haha.
It's the player weapon, and I want the weapon to disappear from his hand, lose it, totally, if you pass by a script you will lose your weapons, it's not going to be in your inventory anymore unless you get a another one.

Sorry and thanks again.

http://www.indiedb.com/games/sem-sada-no-way-out
RelMayer
11
Years of Service
User Offline
Joined: 14th Apr 2008
Location: France
Posted: 5th Feb 2014 01:03
Yep, you can delete all weapons from the player inventory with this script



Quote: ";Artificial Intelligence Script
;Airmod Script by Ashley Tayles
;Header

desc = resetweapons

;Triggers

:plrwithinzone=1:state=1,resetplrweapons"


Excuse my grammar errors, I'm French.
Belacios
7
Years of Service
User Offline
Joined: 11th Nov 2012
Location: Otherworld
Posted: 6th Feb 2014 18:20
Oh Lawd, that's exactly what I needed, thanks A LOT RelMayer! =D

http://www.indiedb.com/games/sem-sada-no-way-out
RelMayer
11
Years of Service
User Offline
Joined: 14th Apr 2008
Location: France
Posted: 15th Feb 2014 00:25
You're wekcome, but thank the script author, not me :p

Excuse my grammar errors, I'm French.

Login to post a reply

Server time is: 2019-11-19 00:10:01
Your offset time is: 2019-11-19 00:10:01