inv_weapon_disable_all_but_this_slot(slot_index[, sync_flags]) |
|
Parameters: |
slot_index | | (integer) index of the weapon slot |
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: |
Disable all weapon slots with the exception of the specified 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:15 |