GoldenEye: Source Forums

  • December 03, 2024, 04:38:38 pm
  • Welcome, Guest
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: Python Function to remove a single players weapon?  (Read 18072 times)

0 Members and 1 Guest are viewing this topic.

null

  • Agent
  • *
  • Posts: 39
  • Reputation Power: 0
  • null is looked down upon.
  • Offline Offline
Python Function to remove a single players weapon?
« on: January 21, 2017, 03:21:24 am »

Currently player.StripAllWeapons() is the only function that i know of to remove weapons from players. Is there a way to remove just one weapon without removing another?

Thanks!

Null
Logged

Entropy-Soldier

  • Managing Director
  • 00 Agent
  • ***
  • Posts: 506
  • Reputation Power: 372
  • Entropy-Soldier is awe-inspiring!Entropy-Soldier is awe-inspiring!Entropy-Soldier is awe-inspiring!Entropy-Soldier is awe-inspiring!Entropy-Soldier is awe-inspiring!Entropy-Soldier is awe-inspiring!Entropy-Soldier is awe-inspiring!Entropy-Soldier is awe-inspiring!Entropy-Soldier is awe-inspiring!Entropy-Soldier is awe-inspiring!Entropy-Soldier is awe-inspiring!Entropy-Soldier is awe-inspiring!
  • Offline Offline
Re: Python Function to remove a single players weapon?
« Reply #1 on: January 21, 2017, 08:17:29 pm »

Sadly not at the moment.

What do you want to do?  There might be another way.
Logged
"By reading this, you’ve done more than you can imagine." - Adrian

null

  • Agent
  • *
  • Posts: 39
  • Reputation Power: 0
  • null is looked down upon.
  • Offline Offline
Re: Python Function to remove a single players weapon?
« Reply #2 on: January 23, 2017, 11:48:05 pm »

Thanks for the response,

This is for Arsenal, but if a player has slappers as their active weapon when they level up. They will auto switch to the new weapon instead of staying on the current weapon. I was just looking for alternative ways of switching out weapons without removing slappers too.

Null
Logged
Pages: [1]   Go Up