How can I change a value in scriptCmdData.func.args.argname
to pass the scriptCmdData
further to another existing command?
I have a command GoUpOrDown
that can accept negative values for direction -5
up, 5
down.
I'd like to add another command that reflects the direction in its name GoUp
, and all that command would do is get scriptCmdData
it its method, change 5
to -5
and then pass scriptCmdData
to the original onGoUpOrDown
method
This way I don't need to repeat the whole logic in this wrapper. But I get an error A method was called unexpectedly (0x8000ffff)
instead, so I guess this is a read-only object? Or maybe I need to create a copy of itthen I'd be able to changes it's properties?