Example 2 - Pick Weapons

The second example is exactly like the first on, but also allows to pick each of the four example weapons that come with the Shooter module.

To pick a weapon we've build it so the Player simply has to pass through the Blue Cubes and it will automatically equip it.

Notice that this is also customizable. You could make a character equip a certain weapon when clicking on it, pressing a keyboard button or even, if you have the Inventory module, pull the weapon when an item is equipped (in the Inventory).

This shows how versatile the system is and how it can be used seamlessly with other modules.

These cubes are very simple: They have a On Player Enter Trigger attached which executes an Action with just one instruction: Draw Weapon. Each cube draws a different weapon, which is informed to the user using a Canvas with a Text on top of it.

Last updated