SetActorField not changing the variable

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
kimosabe
Posts: 22
Joined: Tue Aug 09, 2022 7:19 pm

SetActorField not changing the variable

Post by kimosabe »

I'm using this code:

Code: Select all

if (TryGetComponent(out DialogueActor actor))
        {
            DialogueLua.SetActorField(actor.actor, "IsDead", true);
        }
But it's not changing the variable if I check using the Dialogue window.
I've also debugged to check that that the actor name is an exact match to the actor name in the database.

Could this be related to localization?

Thanks in advance
User avatar
Tony Li
Posts: 21679
Joined: Thu Jul 18, 2013 1:27 pm

Re: SetActorField not changing the variable

Post by Tony Li »

Hi,

If you're looking at any tab in the Dialogue Editor window except Watches, they show the original database value, not runtime values. Use the Watches tab to view runtime values.
Post Reply