Page 1 of 1

How can you take away a specific weapon?

Posted: Tue Oct 07, 2003 5:19 am
by IvanTheTerrible
What would be the script to take away a specific weapon from a player?

Posted: Wed Oct 08, 2003 8:51 pm
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.