inv_weapon_add_temporary(player_name, weapon_name[, count[, unlimited[, equip_now[, dual_wielding[, force_override[, upgrade_falgs]]]]]])

Parameters:
player_name (string) name of the player
weapon_name (string) name of the weapon
count (integer, optional) number of magazines of ammo to give (defaults to 1)
unlimited (boolean, optional) set to true if the weapon should have infinite ammo (defaults to false)
equip_now (boolean, optional) set to true if the player should equip the weapon immediately (defaults to false)
dual_wielding (boolean, optional) set to true if the player should get a dual wielding version of the weapon
force_override (boolean, optional) set to true to force this override, even if the player already has a better weapon in this slot
upgrade_falgs (integer, optional) upgrade flags to be applied to the weapon (WEAPON_LEVEL2, WEAPON_LEVEL3, WEAPON_LEVEL4) (defaults to 0)
 
Returns:
none

Description:
Temporarily add a weapon to a player's inventory.

The weapon can be removed from the player's inventory by calling inv_weapon_remove_temporary.

 

back to indexSR3 Script Action Documentation
Last updated: Tue, 09 Aug 2011 11:32:15