0
Answered

Issues with holster & re-equip

Sam Leitch 4 months ago in Shooter updated by Marti (Lead Developer) 4 months ago 2

Hello everyone,


I am having issues with re-equipping the holstered weapon.


The weapons are all equipable and swoppable fine. Holstering causes an issue. 

Once holstered i cannot bring them back out. The random unused original prefab revolver equips (not used in game).

The weapon still shows as equipped in the Invantory but not equiped.

Unity version:
2019.3.14
Game Creator version:
latest

Found in the CommonHolser Trigger i had the standard revolver as the item to re-equip after holstering any weapon.

Cant find how to re-equip the previous weapon, but have a work around that i added an un-equip weapon when its holstered. So on holster it now has to be equipped from the invantory.

Answered

The Draw Weapon action has the option to draw the previously used weapon. But that only draws the weapon, not re-equips the item. This option is meant to be used when a character, which has  a weapon drawn, enters a cutscene and you want to remove the weapon from its hand without unequipping the weapon. You can use the Holster weapon action when the cinematic starts and draw the last used weapon when the cinematic ends.

However, if you're using the Inventory module to equip weapons, you'll need to use the Unequip Item and Equip Item actions when swapping between guns.