ObjectInteraction.TalkTo C# (CSharp) Method

TalkTo() public method

public TalkTo ( ) : bool
return bool
    public bool TalkTo()
    {
        //NPC NPCCharacter = this.GetComponent<NPC>();
                //if (NPCCharacter != null)
                //{
                //	NPCCharacter.TalkTo();
                //}
                object_base item=null;
                item=this.GetComponent<object_base>();
                return item.TalkTo();
    }

Usage Example

    //Triggers conversation with feral troll jail in tybals lair (if they are alive)


    public override void ExecuteTrap(object_base src, int triggerX, int triggerY, int State)
    {
        ObjectInteraction npc = ObjectLoader.getObjectIntAt(251);

        if (npc != null)
        {
            if (npc.GetComponent <NPC>() != null)
            {
                if (npc.GetComponent <NPC>().npc_whoami == 216)
                {
                    npc.TalkTo();
                }
            }
        }
    }
All Usage Examples Of ObjectInteraction::TalkTo