Hi,
I'd like to be able to change some game variables of the Adventure Creator asset in PM, so I could use them together.
I'm having some trouble figuring if this is doable. The thing is the variables are in a run time list.
So to change them in code you'd do something like
// get reference to RuntimeVariables. don't do this in an Update loop
RuntimeVariables runtimeVariables = GameObject.FindWithTag(Tags.persistentEngine).GetComponent<RuntimeVariables>();
// set the 3rd variable in my variables list, which is an integer, to 12
runtimeVariables.SetValue(2, 12, AC.SetVarMethod.SetValue);
Is there a process to recreate that in Playmaker? Can't get it to happen with what I've tried.
Thanks