Getting Started Guide (Version 1.15)

Adding a Pickup Item

This topic references tools and features that are legacy. If you want to use legacy tools in Lumberyard Editor, disable the CryEntity Removal gem using the Project Configurator or the command line. To learn more about legacy features, see the Amazon Lumberyard Legacy Reference.

Now you add an item in the maze that the player must pick up before exiting the maze. The pickup item is a prebuilt slice that you access through the Asset Browser. After you place the pickup item slice, you customize the Lua Script component.

To place a pickup item

  1. In the Asset Browser, navigate to StarterGame\Slices\GSG.

    Select maze_pickupobjective.slice and drag it into your viewport, into the far corner of the maze.

  2. The maze_pickupobjective.slice has a number of components and several entities. You modify the properties on one of these components.

    In the Entity Outliner, select the Maze_PickupObjective slice.

  3. In the Entity Inspector, in the bottommost Lua Script component, under Recipients, next to Entity, click the picker .

  4. In the Entity Outliner, under ExitDoor_Parent, select Exitdoor_Script.

    You now have a pickup that, when retrieved, allows the player to exit the maze.

  5. Press Ctrl+S to save your level.

Next: Adding a Timer