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 / How to rip the player of his weapons?

Author
Message
Nigezu
19
Years of Service
User Offline
Joined: 25th Nov 2005
Location: Oulu, Finland
Posted: 2nd Dec 2010 15:10
I don't know if this has been answered on the forums before but is there a way to rip the player of his/her weapons? I'd like to have a scene in my game where the player is captured and put to jail. Naturally I'd like the player to be ripped of all weaponry in the jail scene so I was wondering if this could be achieved with a trigger zone script? If it isn't possible with a trigger zone, would it be possible to do this at the start of a new level?

I'm a total newb when it comes to scripting but any help is greatly appreciated
Plystire
22
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 2nd Dec 2010 17:35
With the implementation of AirMod into the new versions, there should be a command that removes all of the player's weapons from their inventory. I can't recall the name of the command right now, but it should be in there. Perhaps someone who knows will come along.


The one and only,


Only those who sow the seeds of their desires will reap their benefits later.
However, I have seeds of my own to tend to. I don't have time to be someone else's watering can.
General Jackson
User Banned
Posted: 2nd Dec 2010 19:30
I believe it's removeplayerweapons, can't remember for sure.

I am Southern, and I love Grits. Feel free to ask me what grits are if your a yankee
Nigezu
19
Years of Service
User Offline
Joined: 25th Nov 2005
Location: Oulu, Finland
Posted: 2nd Dec 2010 21:06
Thanks. Good to know there actually is a command for that
defiler
16
Years of Service
User Offline
Joined: 4th Apr 2009
Location: Canada
Posted: 3rd Dec 2010 00:34
If there is not a command, you could have the level end when he gets captured and the next level is him inside the jail cell with no weapons.

Current Project: Lost Contact: Station 7
Nigezu
19
Years of Service
User Offline
Joined: 25th Nov 2005
Location: Oulu, Finland
Posted: 3rd Dec 2010 10:17
but player's weapons move on to the next level when you build a .exe of your game

This is a basic trigger zone script (I guess). How should I modify it to get the weapons removed? Any help is much appreciated.
Brunopark09
14
Years of Service
User Offline
Joined: 7th Jul 2010
Location: Santiago de Chile
Posted: 5th Dec 2010 02:34
I think the comand is called "resetplrweapons"

SCI FI MEDIA IS NEVER ENOUGH!

Login to post a reply

Server time is: 2025-06-04 20:54:50
Your offset time is: 2025-06-04 20:54:50