0
Fixed

Identical actions behave differently when called from the "IF" block of a Condition versus the "ELSE" block

mode80 8 months ago in Game Creator updated by Marti (Lead Developer) 8 months ago 1

I tracked this down to Conditions.Interact() where IF clause actions are executed with

this.clauses[i].ExecuteActions(target, parameters);

but ELSE clause actions are executed with

this.defaultActions.Execute();

As a result, the invoker context is different (null) when executed in the ELSE clause. Maddening bugs ensue. 

It works the way I expect when I change the second line to:

this.defaultActions.ExecuteWithTarget(target);
Unity version:
2018 LTS
Game Creator version:
1.06

Answer

Answer
Fixed

Thank you Mode80! This is a day-zero bug! Glad you've given us a heads up. We'll be releasing a new version with this issue patched very soon. Cheers!

Answer
Fixed

Thank you Mode80! This is a day-zero bug! Glad you've given us a heads up. We'll be releasing a new version with this issue patched very soon. Cheers!