Page 1 of 1

SetActorField not changing the variable

Posted: Mon Aug 26, 2024 7:47 am
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

Re: SetActorField not changing the variable

Posted: Mon Aug 26, 2024 8:16 am
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.