Unable to get actor field.
Posted: Thu Sep 17, 2020 8:21 pm
Hello there.
I seem to be having issues getting an actor field in my C# script via DialogueLua.GetActorField.
This is strange for me, because I am able to get another field from the same actor in the same area of script.
In this script, I attempt to get an actor's "Attack" power.
As you can see by the middle Debug.Logs, I read out the actor's name, "Health" field, and their "damageAmount" which is actually their "Attack" field.
The console output is shown below. This is what the actor's fields looks like. You can verify that the proper name is used because not only is the name printed out in the above log, but their health field was properly printed out.
These values were set in-editor prior to runtime: Please let me know if there is anything I am missing.
Thank you very much!
Justin
I seem to be having issues getting an actor field in my C# script via DialogueLua.GetActorField.
This is strange for me, because I am able to get another field from the same actor in the same area of script.
In this script, I attempt to get an actor's "Attack" power.
As you can see by the middle Debug.Logs, I read out the actor's name, "Health" field, and their "damageAmount" which is actually their "Attack" field.
The console output is shown below. This is what the actor's fields looks like. You can verify that the proper name is used because not only is the name printed out in the above log, but their health field was properly printed out.
These values were set in-editor prior to runtime: Please let me know if there is anything I am missing.
Thank you very much!
Justin