Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Inventory like Gmod?

Discussion in 'Scripting' started by benjaminstrike, May 28, 2014.

  1. benjaminstrike

    benjaminstrike

    Joined:
    Mar 21, 2014
    Posts:
    14
    Hello everyone,

    I not so new to scripting so only a start can help much. I'm making a 3d Third Person Game. What I want to do is you press the button "I" you get a menu with a list of items (Like Garry's mod). When you click a item in the menu you spawn the item. Is this possible? I searched for it a long time so don't make reactions like: "Google is your best friend" because I already searched on the internet.

    ~Benjamin
     
  2. paranoidx

    paranoidx

    Joined:
    Apr 17, 2014
    Posts:
    43
    You sort of have to tell us which part you are stuck with and your current work in progress.

    if its popup list, http://wiki.unity3d.com/index.php?title=PopupList

    so when the player selects a list item, it would instantiate some reference to the item in front of player.
     
    Last edited: May 28, 2014
  3. benjaminstrike

    benjaminstrike

    Joined:
    Mar 21, 2014
    Posts:
    14
    Yes it was a popuplist. Thank you! It worked for me.