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 do I take all the player's weapons away?

Author
Message
bruce3371
14
Years of Service
User Offline
Joined: 4th Aug 2010
Location: Englishland
Posted: 19th Aug 2011 01:37
I've searched everywhere for this. Although I found a few results, none of the scripts that were posted work, or they're not quite what I need. In a few of the posts, there's even some uhming and aahing over which commands still work. All in all, it's been the usual fruitless search!

Anyway, what exactly do I want to know?

I need to write a triggerzone script, where the player enters the zone, and all the weapons he's carrying are stripped from him.

The reason I need this, is that I've made a training level for my game, which involves the use of a pistol and a sniper rifle. But I don't want those weapons carried over to the first 'proper' level of the game. So at the end of the training level, the player has the weapons taken from him, then starts again from scratch at the start of the game itself.

Can someone point me in the right direction, and/or tell me exactly which commands are suitable for this, and, most importantly, which commands still work!

Thanks in advance!

2Beastmode4u
13
Years of Service
User Offline
Joined: 14th Feb 2011
Location: Loading...
Posted: 19th Aug 2011 01:43
Just use the "resetplrweapons" command.


Cheers.

God help me, Please.
bruce3371
14
Years of Service
User Offline
Joined: 4th Aug 2010
Location: Englishland
Posted: 19th Aug 2011 02:11
Thanks for that, here's what I came up with, nice and simple, just how I like it!



Tested and working, free for anyone to use

xymore
13
Years of Service
User Offline
Joined: 9th Jun 2011
Location: East coast, USA
Posted: 19th Aug 2011 06:21
just what i was needing
works like a charm
thanks
bruce3371
14
Years of Service
User Offline
Joined: 4th Aug 2010
Location: Englishland
Posted: 19th Aug 2011 19:06
Glad someone else found a use for it

Login to post a reply

Server time is: 2024-11-24 05:41:17
Your offset time is: 2024-11-24 05:41:17