Page 1 of 1

UCC - how to show character/object name on interact message?

Posted: Mon Feb 21, 2022 6:07 am
by OddMan2
hello, i can't figure out how to show the actor name in the interact ability message.
From what i understand, this should be the default behavior but if i set "TALK TO: {0}" as the ability message it just shows "TALK TO:", without the name.

What could i be missing?

Thank you

Re: UCC - how to show character/object name on interact message?

Posted: Mon Feb 21, 2022 9:22 am
by Tony Li
This is a general UCC interaction feature, which I mention because you can use it for more than just Dialogue System interaction.

The "{0}" depends on the interactable (e.g., NPC) having a script that implements UCC's IInteractableMessage interface, as described on this UCC documentation page.

Here's an updated DialogueSystemTriggerInteractableTarget that implements IInteractableMessage so you don't have to write one.

DS_UCC_DSInteractableTarget_2022-02-21.unitypackage

I'll send off the updated full integration package to Opsive, too.

Re: UCC - how to show character/object name on interact message?

Posted: Mon Feb 21, 2022 9:38 am
by OddMan2
Thank you for your reply,
In the meantime i came to the same conclusion and i was writing my interactable target script but you beat me to it!
Great support as always.