Hey. Can someone give me an example of how to register a custom command? My function will have only one variable and no optional variables. It will accept an orx object ID, and will return nothing.
The thing I'm hung up on is how the parameter lists are supposed to work.
Can someone help me? The sooner, the better. I got lazy and stopped working on it for a while, and want to get development rolling again. Thanks guys!
Comments
First of all, you need to return something from your command. Worst case you can return 0 or the same GUID you got as parameter which allows easy re-stacking in a timeline.
Well, here's an example of such a command registration:
Now that being said, I get lazy when working on my own games in those cases. I usually simply use inputs to communicate back to the code.
Something like:
And in code I'd then test for the input MyCommandInput to be triggered and would fetch the object GUID from console with