Lua commands
Posted: Thu Dec 14, 2017 4:18 am
In my game I would like to try hide the triggers if some conditions are not fulfilled. I created a gameobject with a "Condition Observer", where I added three Lua Commands and one Action Command
So I tried this, but I was getting the 'Invoke function call on non function value.' and I taught that maybe I'm doing something wrong, so I used the Lua Console.
In my Hierarchy I have a game Object called Test and the command I used in the console is
and the result is
.
Am I doing something wrong?
So I tried this, but I was getting the 'Invoke function call on non function value.' and I taught that maybe I'm doing something wrong, so I used the Lua Console.
In my Hierarchy I have a game Object called Test and the command I used in the console is
Code: Select all
SetActive(Test, false);
Code: Select all
Dialogue System: Lua code 'SetActive(Test, false);' threw exception 'Invoke function call on non function value.'
Am I doing something wrong?