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.
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.