Page 1 of 1

Getting Actor Fields in Sequencer

Posted: Wed Jun 10, 2020 12:42 pm
by dbclutis
Hello,

Hopefully this is a pretty easy question, but I couldn't seem to find how to access actor fields within the sequencer in the documentation.. How do I go about doing that?

I'm wanting it to look something like this:
Actor Field Sequencer.JPG
Actor Field Sequencer.JPG (13.74 KiB) Viewed 295 times
Thanks,
DC

Re: Getting Actor Fields in Sequencer

Posted: Wed Jun 10, 2020 1:18 pm
by Tony Li
Hi,

You can use the [lua(code)] markup tag. Example:

Code: Select all

AnimatorPlay([lua(Actor["Bob"].DefaultAnimation)])
If you're writing your own sequencer command, you can access the actor's fields fairly easily in C# using DialogueLua.GetActorField(). If you need to do this and have questions, just let me know.

Re: Getting Actor Fields in Sequencer

Posted: Wed Jun 10, 2020 6:38 pm
by dbclutis
Exactly what I was looking for!

Thanks again!
-DC

Re: Getting Actor Fields in Sequencer

Posted: Wed Jun 10, 2020 6:58 pm
by Tony Li
Glad to help!