How can you take away a specific weapon?

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
IvanTheTerrible
Sergeant
Posts: 55
Joined: Thu Jun 26, 2003 7:35 pm
Location: Upland, CA

How can you take away a specific weapon?

Post by IvanTheTerrible »

What would be the script to take away a specific weapon from a player?
User avatar
The Jackal
Sergeant Major
Posts: 101
Joined: Wed May 07, 2003 10:09 am
Contact:

Post by The Jackal »

My guess would be a trigger that triggers the 'TAKE' command.

Code: Select all

local.trig = spawn trigger_multiple
local.trig targetname gotcha
local.trig.origin = ( X Y Z )
local.trig setsize ( -120.00 -120.00 0.00 ) ( 120.00 120.00 0.00 )
local.trig message "We got your pistol"
local.trig setthread _police

_police:
local.player = parm.other
$gotcha local.player take itemname
end
Something like that. Not tested.
Post Reply