Page 1 of 1
Settatribute in one-line script doesn't set anything
Posted: 31 Dec 2014 11:25
by hodok
I want to lock ball moving on y axis by button, but no luck when I doing it like this(which is the most obvious way in my humble view):
Re: Settatribute in one-line script doesn't set anything
Posted: 02 Jan 2015 04:03
by Macciza
Hi
That's because holdY is not an accessible attribute
See
https://forum.liine.net/viewtopic.php?f ... ute#p17918 for a module to list attributes.
However the holdY field in the behaviours pane is scriptable and is a good way to do it as inspect the object reveals what it is controlled by. So putting CustomButton.x here will make it respond the that variable.
You could also use logical constructs here if you want a bit more control...
Cheers
Re: Settatribute in one-line script doesn't set anything
Posted: 02 Jan 2015 22:45
by Softcore
Check the Multiball behavior tab!