[DiscordArchive] Anyone know how weapon sheathe locations are handled? I tried to make a Bow sheathe to the back and
[DiscordArchive] Anyone know how weapon sheathe locations are handled? I tried to make a Bow sheathe to the back and
Archived author: BonziBudd • Posted: 2023-05-15T12:23:04.558000+00:00
Original source
Anyone know how weapon sheathe locations are handled? I tried to make a Bow sheathe to the back and it didn't work. Is it a core thing?
Archived author: BonziBudd • Posted: 2023-05-15T12:23:05.369000+00:00
Original source
case SHEATH_STATE_MELEE: // prepared melee weapon
SetVirtualItemSlot(0, GetWeaponForAttack(BASE_ATTACK, true));
SetVirtualItemSlot(1, GetWeaponForAttack(OFF_ATTACK, true));
SetVirtualItemSlot(2, nullptr);
//SetVirtualItemSlot(2, nullptr);
break;
case SHEATH_STATE_RANGED: // prepared ranged weapon
SetVirtualItemSlot(0, nullptr);
SetVirtualItemSlot(1, nullptr);
SetVirtualItemSlot(2, GetWeaponForAttack(RANGED_ATTACK, true));
// SetVirtualItemSlot(2, GetWeaponForAttack(RANGED_ATTACK, true));
break;