How do I make player equip the last used weapon when a skill has been unequipped?

Basically my guns and all weapons is Tool. I have a custom weapon equipping script that unequip all tools every equip to prevent duplication.

However, skills and some weapons should be unavailable for a while after activation.
Thus when player use these tools, such as throwing a grenade, it becomes empty handed.
So I need to automatically equip the last used(or strongest) weapon after using it.

I have no idea for this. each weapon controller script is placed under its tool. please help me!

How about use an array to store previous tools used before then grab them from there index in the table.You can used a bindable event to fire a function.

1 Like

I forgot there is bindableEvent for this. thanks!

No problem people rarely think about using bindable events these days

1 Like