Skip to content

Commit 00f7f83

Browse files
committed
Changes function to switch equip weapon set codes structure
1 parent ef328fb commit 00f7f83

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Scripts/AimAtCursorPlayerCharacterController.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,10 @@ protected void UpdateInput()
199199
if (InputManager.GetButtonDown("SwitchEquipWeaponSet"))
200200
{
201201
// Switch equip weapon set
202-
PlayerCharacterEntity.CallServerSwitchEquipWeaponSet((byte)(PlayerCharacterEntity.EquipWeaponSet + 1));
202+
GameInstance.ClientInventoryHandlers.RequestSwitchEquipWeaponSet(new RequestSwitchEquipWeaponSetMessage()
203+
{
204+
equipWeaponSet = (byte)(PlayerCharacterEntity.EquipWeaponSet + 1),
205+
}, ClientInventoryActions.ResponseSwitchEquipWeaponSet);
203206
}
204207
if (InputManager.GetButtonDown("Sprint"))
205208
{

0 commit comments

Comments
 (0)