ioxu / key

Key, a game made with the Godot Engine 4.
MIT License
6 stars 1 forks source link

make a weapon quick-switcher mechanism #43

Closed ioxu closed 2 years ago

ioxu commented 2 years ago
ioxu commented 2 years ago

(copied from #38) functionally to equip a weapon it needs to be

  1. re-parented under player/MeshInstance/weapon_mount
  2. signals need to be connected current_weapon.connect("fire", player, "_on_weapon_fire") and weapon.connect("magazine_count_changed", dui_root, "_on_magazine_count_changed")
ioxu commented 2 years ago

not re-hooking up "magazine_count_changed", magazines are not important right now.

ioxu commented 2 years ago

done with #38