Player:ChangingWeapon
Player:ChangingWeapon(player: Player, oldSlot: int, newSlot: int, playerTriggeredSwitch: bool, quickSwitch: bool, automaticSwitchBack: bool)
Parameters
Name | Type | Description |
---|---|---|
player | Player | |
oldSlot | int | |
newSlot | int | |
playerTriggeredSwitch | bool | |
quickSwitch | bool | |
automaticSwitchBack | bool |
Example
Events:Subscribe('Player:ChangingWeapon', function(player, oldSlot, newSlot, playerTriggeredSwitch, quickSwitch, automaticSwitchBack)
-- Do stuff here.
end)
Last modified November 2, 2022: Update changelog for 19963 (9f161b98)