In the pursuit of greater understanding I'm testing passing values and execute another command
When using 'Execute Another Command' I can output some arbitrary string value as expected from the executed command using the below:
Write [Blue] ''{TXT:~passedText1}' to log
However, if I try this with inline function for instance:
vaProxy.Command.Execute("fire weapons", WaitForReturn: true, PassedText: "testing");
I get a 'Not Set'. I haven't managed to see the error in my syntax.
I've followed the various examples as below and it executes the command so the passed value is the issue.
public void MyCompletedFunction(Guid? theInternalId)
{
VA.WriteToLog(theInternalId.ToString() + " completed", "Orange");
}
public void main()
{
vaProxy.Command.Execute("fire weapons",true);
vaProxy.Command.Execute("fire weapons", true, true, MyCompletedFunction);
}