How can you take away a specific weapon?
Moderator: Moderators
- IvanTheTerrible
- Sergeant
- Posts: 55
- Joined: Thu Jun 26, 2003 7:35 pm
- Location: Upland, CA
How can you take away a specific weapon?
What would be the script to take away a specific weapon from a player?
- The Jackal
- Sergeant Major
- Posts: 101
- Joined: Wed May 07, 2003 10:09 am
- Contact:
My guess would be a trigger that triggers the 'TAKE' command.
Something like that. Not tested.
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