Game Kit Controller
  • Welcome
  • Quick Start
    • 🛣️Roadmap
    • ⭐Getting Started
      • Importing GKC
      • (Optional) Download External Files
    • 🎓Tutorials
      • 🔑Tips, Tricks and Hotkeys
      • Manually Add Axes in the Input Manager
      • Manually Add Tags and Layers
      • Tutorial - Create a New Character
      • Tutorial - Create a New Character with the Manual Creator
      • Tutorial - Create a Generic Character
      • Tutorial - Set the Default Weapons in a New Character
      • Tutorial - Create New Melee Weapon
      • Tutorial: Set Initial Melee Weapons on Player & AI
      • Tutorial - Adjust Weapons Quick Draw Weapon Action
      • Adjusting Player's Upper Body for Weapons
      • Fixing Player Spine Rotation
      • Tutorial - Add Action System By Input
      • Tutorial - Configure Local Multiplayer
      • Configure the Switch Character Companion
      • Configure the Main Mission Manager
      • Configure the Main Scene Manager
      • Using the Save System for Elements State on Scene
      • Tutorial - Configure the Drive System on an External Vehicle Controller
      • Setting up a New Skill System
      • Tutorial - Configuring Melee Weapon Attacks
      • Tutorial - Create Objects to Grab and Carry Physically
      • Tutorial - Create a new Melee Attack
      • Tutorial - Changing Player Movement Animations
    • ⁉️FAQ
  • Major Systems
    • ⚡Main Manager Administrator
    • 🏃‍♂️Traversal Movements
      • Climbing
      • Rail Sliding
      • Wall Running
    • 📥Inventory System
      • Adding a New Inventory Object
      • Create a new Inventory Prefab
      • Check the Use Inventory Object works correctly
      • Use Inventory Objects
      • Create Inventory Icon
      • Assign New Inventory Objects to the Player
    • ⚔️Weapon Systems
      • Dual Wielding Weapons
      • Tutorial - Configuring Melee Weapon Attacks on a Weapon
      • Tutorial - Create New Melee Weapon
      • Tutorial - Adjust the Fire Weapons Main Position
    • 👕Armor/Clothe System
      • Tutorial - Configure Armor-Clothe for New Model
      • Tutorial - Adding A New Piece To An Existing Armor-Cloth Set
    • ⛺Event Trigger System
      • Setting Up the Event Trigger System
    • 👊Action System
      • Action System Component
      • Tutorial - Add Action System By Input
      • Tutorial: Create Objects to Grab & Carry Physically
    • 🏂Abilities & Skills Systems
      • Skill Systems
        • Player Skill System Component
        • Player Skills UI System Component
        • Tutorial - Setting Up a New Skill System
      • Ability Systems
        • Player Abilities System Component
        • Custom Ability Component
        • Activating an Ability by Key Combo
        • Tutorial - How to set Default Abilities
        • Tutorial - Create a Custom Ability
        • Tutorial - Create a new Melee Attack
        • Tutorial - Configuring Melee Weapon Attacks
    • 💬Dialogue System
      • Configure the Main Dialog Manager
    • 🏴‍☠️Faction System
    • 🗺️Map System
      • Map Creator Component
      • Setting Up the Map System
      • Creating a new Map Creator and adding Map Parts
      • Add Name Mesh for the Floor
      • Manage Multiple Floors
      • Duplicate Map Part
      • Delete Map Parts and Floors
      • Change between Floors with Triggers
      • Add Triggers for Hidden Map Parts
      • Enable and Disable Certain Parts of the Map
      • Show a Hidden Map Part With Another Color Until Visible
      • Use Map Object Information
      • Configure Map object information Icons
      • Configure Map Pickup to Unlock Map Parts or Floors
      • Map Object Information Linked to a Map Part
      • Render Terrain in the Map Window
      • Assign the Created Floors to the Map System
    • ❗Objective System
      • Main Objective Manager
      • Configure a Mission to Start in one Scene and Finish in Another
      • Configure a Mission to Eliminate Multiple Targets
    • 🚥Player Control Mode
      • Weapons
      • Powers
    • 🌪️Combination System
      • Rifle Sword Example
      • Combat
    • ⌛Time Manipulation
      • Bullet Time (Max Payne Style)
      • Slow Motion (Matrix Style)
    • 🖥️HUD System
    • 🔨Toolbar System
    • 💾Save System
      • Save System for Elements State on Scene
    • 🏳️Localization/Language System
  • Top Level Components
    • 🎮Player and Game Management
      • 🖼️Tag Layer System
      • ⌨️Input Manager
        • First Steps and Basic Use
        • Add a New Touch Button
        • Check and Filter Input Actions
        • Configure Input on Vehicles
        • Configure Input Rebind Menu Panel and Actions
        • Add an Action to a New Script
        • Remove an Axe
        • Disable an Axe
        • Save/Load Currently Configured Axes
        • Manage Axes Save File
        • Touch Controller
        • Diable Touch Buttons on Start
        • Delete Disabled Touch Buttons
        • Assign a Touch Button to an Action
        • Scale Touch Button in the Inspector
        • Touch Joysticks
      • ☕Main Manager Adminstrator
      • 🖱️Mouse Cursor Controller
      • 🎲Game Manager
      • 🚶Player Characters Manager
      • Simple FPS Counter
      • Place Object in Camera Editor Position System
      • Set Game Object Active State
      • Set Initial Position At Game Start
  • Character Level Components
    • 🕺Character
      • Features Manager
      • Menu Pause
      • Build Player
      • Ragdoll Builder
      • Powers List Manager
      • Player HUD Manager
      • Map System Component
      • Show Game Info Hud
      • Save Game System
      • Camera Capture System
      • Weapon List Manager
      • Player Screen Objectives System
      • Console Mode
      • Player Health Bar Management System
      • Player Pickup Icon Manager
      • Player Damage On Screen Info System
      • Time Bullet
      • Player Tutorial System
      • Player Options Editor System
      • Vendor UI System
      • Dialog System
      • Objective Log System
      • Objective Station UI System
      • Travel Station UI System
      • Inventory Bank UI System
  • Player Controller Components
    • 🕹️Player Controller
      • Player Controller Component
      • Gravity System
      • Other Powers
      • Grab Objects
      • Health
      • Using Devices System
      • Close Combat System
      • Ragdoll Activator
      • Foot Step Manager
      • Pickups Screen Info
      • IK System
      • Player Weapons Manager
      • Inventory Manager
      • Damage Screen System and Damage In Screen
      • Friend List Manager
      • Upper Body Rotation System
      • Player States Manager
      • Head Track
      • Character Faction Manager
      • Player Input Manager
      • Player Navmesh System
      • Map Object Information
      • Hands On Surface IK System and IK Foot System
      • Climb Ledge System
      • Remote Event System Component
        • Setting Up a Remove Event
    • 📹Player Camera
      • Player Camera Component
      • Player Culling System
      • Set Transparent Surfaces
    • 💯Essential Components
      • AI Behaviors
      • Damage Hit Reactions System
      • Dash System
      • Inventory Camera Position and Map Elements
      • Experience-Level-Stat Systems
        • Player Experience System Component
        • Player Stats System Component
        • Player Skill System Component
          • Tutorial - Setting up a New Skill System
        • Player Skills UI System Component
      • Inventory Categories List Manager
      • Melee Combat System
      • Inventory Menu Panels System
      • Inventory Quick Access Slots
      • Inventory Weight Manager
      • Inventory Armor-Cloth Customization System
      • Player Abilities System Component
      • Player Action System Component
      • Player Info Panel On Screen System
      • Player Input Panels
      • Player State System
      • Match Player To Target System
      • Slow Down Time On Perfect Dodge
      • Save Info Elements List
      • Custom Character Controller Manager
      • Player Navmesh System
      • Elements On Scene System
    • 💼Non Essential Components
      • Ability Activated By Key Combination (R G)
      • Bullet Time Firing System (Max Payne Style)
      • Climb Ledge System
      • Currency System
      • Condition System
      • Console Log On Screen
      • Flashlight
      • Hands On Surface IK System
      • IK Foot System
      • Magic System
      • Laser Dot On Screen Manager
      • Oxygen System
      • Simple Sniper Sight Manager
      • Roll On Landing System
      • Photo Mode System
      • External Controller Behaviors
      • Gravity Wall Run Ability
      • Check If Carrying Weapons To Set Close Combat
    • 📲Elements Used By Other Components
      • Body Mount Points System
      • Damage On Screen Info System
      • Damage In Screen
      • Double Check To Disable Fire Damage On Roll
      • Free Fall Activator
      • Fire Damage
      • Ladder System
      • Inventory Camera Position
      • Map Elements
      • Projectiles On Body Manager
      • Pickups Info On Screen System
      • Player Idle System States
      • Remote Player Navmesh Override
      • Scanner System
      • Sprite Animator System
      • Shield System
      • Stamina System
      • Temporal Parent For Weapons
      • Throw Grenade From Inventory
      • Transform to Follow
      • Touch Screen Pinch System
      • Weapons Attachment UI Manager
      • Vehicles Mode Control
      • Show Values On Screen System
      • AI Mount Manager
      • Game Language Selector
      • Possession Override Objects System
      • Slider Info System
      • Actitvate Action On Characters On Scene
      • Graphic Quality Settings System
  • Additional Managers
    • 🧞‍♂️Prefabs Manager
      • Main Settings
      • Prefab Type List
      • Prefabs To Place On Scene List
      • Prefabs Searcher Options
    • 💰Main Inventory Manager (Inventory, Bank and Vendor)
      • Inventory List Manager
    • 🕳️Decal Manager
    • 🛻Pickup Manager
    • 👈Screen Objectives Manager
    • ❤️Health Bar Manager
    • 🤝External Shake List Manager
    • 🏴‍☠️Faction System Manager
    • 🎵Songs Manager
    • 🥏Noise Mesh Manager
    • 👻Set Transparent Surfaces Manager
    • 👿Damage On Screen Info Manager
    • ‼️Main Objective Manager
    • 💬Main Dialog Manager
      • Configure the Main Dialog Manager
    • 🔕Disable Objects On Distance System
    • 🎡Elements On Scene Manager
  • 🤖A.I System
    • AI Settings
    • AI Target Detection and Management
    • AI Attack Mode
    • AI Navigation
    • AI Patrol State
      • Tutorial - Configure Random Walk Movement on Attack Mode and Target Spotted on A.I
    • AI Melee System
    • AI Close Combat System
    • AI Abilities
  • Integrations
    • ➕Current Integrations
      • Emerald AI
      • Universal AI
      • Animal Controller
      • SoulLink Spawner
      • Easy Build System (EBS)
      • Randomation Vehicle Physics
      • Edy’s Vehicle System
      • Space Combat Kit
      • Mech Combat Kit
      • NWH Vehicle Physics 2
      • Dynamic Water Physics
      • Honor AI
      • UMA 2
      • DestroyIt
      • Silantro Flight Simulator Toolkit
      • Dialogue System for Unity
      • Interactor
      • iStep
    • 🔧Upcoming/In Progress
      • Ability & Combat Toolkit
      • Ork 3 Framework
  • Annex
    • 📖Changelog
      • GKC Update 3.03-3A
      • GKC Update 3.03-2
      • GKC Update 3.03-1
      • GKC Update 3.02g (Final)
      • GKC Update 3.02f
    • ‼️Possible Issues and Fixes
  • Support
  • Discord
  • Forum
  • Patreon
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. Major Systems
  2. Inventory System

Use Inventory Objects

PreviousCheck the Use Inventory Object works correctlyNextCreate Inventory Icon

Last updated 2 years ago

Was this helpful?

Important: in this explanation, the fuse box is used as an example, but this system can be used to create any type of object where to use inventory objects.

Finally, to use the objects created and configure in the previous steps, follow these steps (in this explanation, the fuse box will be used as an example to unlock a door, and the mesh for the fuse box is already created):

  • The parent that contains the fuse box is an empty transform with this configuration:

    • The tag assigned is the device. o The layer assigned is Ignore Raycast.

    • A sphere collider with the trigger option enabled is used to detect if the player is close enough to the fuse box to use the inventory objects on it.  So, it looks like this:

  • Add a Use Inventory Object component to the parent.

  • In the Main Settings, set to true the option Disable Object Action After Use. This is used to disable the Device String Action component icon, which will be added after.

  • Also, in the option Use Inventory Type, you can configure how the objects used in the fuse box are placed:

        • Menu, the player needs to open, select and use the object.

        • Button, the player only needs to press the interaction button to use the necessary inventory objects (in case he has them, else a message is shown on the screen to say that the player hasn’t the needed objects).

        • Automatic, the player only needs to enter the trigger to use the inventory objects in the fuse box.

  • Add an event to the list of Unlock Function Call and add the object to use, in this case, add the door to unlock.

  • Add in the Function field, and set the UnlockDoor function, from the component Door System.

  • Now, configure the objects to be used from the inventory in this fuse box. For this follow these steps: o Open the Inventory Object To Use Lis.

o

Press the button Add Object.

    • Open the new element and configure the values required, name, the amount needed, and the message shown on the screen when the object is used.

    • Then, in the field Object Needed, drag and drop the mesh of the inventory object which needs to be used here, in this case, the fuse. The path of these meshes is Assets/Game Kit Controller/Prefabs/Inventory/Mesh

    • Open the Inventory Object Needed List inside the current element that is being configured and press the button Add Object.

    • Open the new element and, for this case, set to true the option Enable Object.

    • This option activates a gameObject in the level and in this case, the fuse models placed in the fuse box are disabled, so when the player uses a fuse from the inventory, the fuse is activated inside the box. For this example, the gameObject Fuse Model is disabled in the hierarchy. This is the element configured in the Object To Enable Field.

    • The fuse model needs to be disabled before starting the game.

    • Instead of activating disabled gameObjects, there is an option to instantiate objects in the scene, but this will be explained later.

    • In this case, there are four fuses, so configure the rest of them, like the first one.

    • Now, along with the four fuses, the fuse box needs a blue wire to work, so another object needs to be configured, but it is another element different from the fuses. Go to the main Inventory Object Needed List and press the Add Object button to configure the blue wire.

    • For the blue wire, like for the fuses, configure the name, the message to show on screen and the amount needed and the inventory object mesh to use.

    • And inside the Inventory Object Needed List, configure the object to active, in this case, a mesh of the wire already placed in the box, like the previous fuses objects.

    • Like with the Fuses Models configured before, the wire object needs to be disabled.

  • Finally, add a Device String Action component to the parent, with the next configuration.

  • The Device Name and the Device Action are the text shown in the icon of the interaction button on the screen. The Show Icon is the default option to show that icon on the screen. The Show Touch Icon Button is a default option used to show the touch button on mobile devices to use the interaction button.

📥
Graphical user interface Description automatically generated
Graphical user interface, text, application, email Description automatically generated
Graphical user interface, text, application, email Description automatically generated
Graphical user interface, text, application Description automatically generated
Graphical user interface, text, application, email Description automatically generated
Graphical user interface, application Description automatically generated
Graphical user interface, text, application Description automatically generated
Graphical user interface, application Description automatically generated
Graphical user interface, application Description automatically generated
Graphical user interface Description automatically generated
Graphical user interface Description automatically generated
Graphical user interface, text, application, email Description automatically generated
Graphical user interface, text, application Description automatically generated