GoldenEye: Source Forums

  • November 18, 2017, 09:20:40 AM
  • Welcome, Guest
Advanced search  

News:

Pages: [1]   Go Down

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

0 Members and 1 Guest are viewing this topic.

null

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

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: 433
  • Reputation Power: 259
  • 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 AM »

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: 36
  • Reputation Power: 0
  • null is looked down upon.null is looked down upon.null is looked down upon.null is looked down upon.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 AM »

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