So yea, for my new map, i want players to be able to disarm few metropolice at the beginning.
I planned it so that when player gets near them and press use key, the metropolice would lose hes weapon and the player who pressed it, would get the weapon.
But im not really sure on how to make the metropolice lose hes weapon without making him holster it, nor do i know how to give specific weapon to a player (when the player triggers it)
I dont really know if this is possible...i guess it is.
So if anyone knows how to do this, i would be glad to know.
Disarming enemy
Re: Disarming enemy
Weapons of npcs have targetnames too, "<npc's targetname>_weapon".
So you could "kill" the weapon and use game_player_equip to give a weapon to the player.
So you could "kill" the weapon and use game_player_equip to give a weapon to the player.
-
- npc_combine_elite
- Posts: 469
- Joined: Wed Nov 05, 2008 5:52 am
- Location: lolwut L0C4tI0n?
- Contact:
Re: Disarming enemy
Wait if npc weapons have targetnames, is it possible to then attach something to the weapon? (ie: env_sparks to the muzzle attachment or w/e)
Re: Disarming enemy
I would assume so... wait... FLASHLIGHTS!!!
Edit:
Edit: