ObjectInteraction.GetItemType C# (CSharp) Method

GetItemType() public method

Gets the type of the item from object masters. UWE object type codes.
public GetItemType ( ) : int
return int
    public int GetItemType()
    {
        return GameWorldController.instance.objectMaster.type[item_id];
    }

Usage Example

Ejemplo n.º 1
0
 public override bool LookAt()
 {
     UWHUD.instance.MessageScroll.Add(StringController.instance.TextureDescription(TextureIndex));
     if ((TextureIndex == 142) && ((_RES == GAME_UW1) || (_RES == GAME_UWDEMO)))
     {        //This is a window into the abyss.
         UWHUD.instance.CutScenesSmall.anim.SetAnimation = "VolcanoWindow_" + GameWorldController.instance.LevelNo;
         UWHUD.instance.CutScenesSmall.anim.looping      = true;
     }
     if (objInt().link != 0)
     {
         GameObject triggerObj = ObjectLoader.getGameObjectAt(objInt().link);
         if (triggerObj != null)
         {
             ObjectInteraction objIntTrigger = triggerObj.GetComponent <ObjectInteraction>();
             if ((objIntTrigger.GetItemType() == ObjectInteraction.A_LOOK_TRIGGER)
                 ||
                 (objIntTrigger.GetItemType() == ObjectInteraction.A_USE_TRIGGER)
                 )
             {
                 objIntTrigger.GetComponent <trigger_base> ().Activate(this.gameObject);
                 return(true);
             }
         }
     }
     return(true);
 }
All Usage Examples Of ObjectInteraction::GetItemType