inv_weapon_disable_slot(slot_index[, disable[, sync_flags]]) |
|
Parameters: |
slot_index | | (integer) index of the weapon to slot |
disable | | (boolean, optional) set to true to disable the weapon slot, or false to enable it (defaults to true) |
sync_flags | | (integer, optional) synchronization type (MULTI_SYNC_LOCAL = affects local player, MULTI_SYNC_REMOTE = affects remote player, or MULTI_SYNC_ALL = affects both players; defaults to MULTI_SYNC_ALL) |
|
Returns: |
none |
|
Description: |
Enable/disable a specific weapon slot. Note that this call needs to be undone before the mission ends. The inv_weapon_disable_all_slots function is the easiest way to reset weapon slots. The available weapon slot indices are: WEAPON_SLOT_UNARMED WEAPON_SLOT_MELEE WEAPON_SLOT_PISTOL WEAPON_SLOT_SMG WEAPON_SLOT_SHOTGUN WEAPON_SLOT_RIFLE WEAPON_SLOT_EXPLOSIVE WEAPON_SLOT_SPECIAL |
|
|
back to index | SR3 Script Action Documentation Last updated: Tue, 09 Aug 2011 11:32:16 |