player.add_weapon
Give a weapon to a player.
Arguments
- weapon
An object in the game world.
Example
global.player[0].add_weapon(global.object[0])
Notes
Remember that this function works differently from
object.add_weapon
: the object function takes an object type and spawns a new weapon; while the player function takes an existing weapon object.