Game Development Community

Set state of a checkbox control

by Rich Adam · in Torque 3D Professional · 04/28/2010 (12:32 am) · 2 replies

Is there a way to do this from script? I have tried setStateOn(state) with little success. PerformClick is fine, but sometimes you want to jam the state, not toggle it.

#1
04/28/2010 (5:28 am)
Have you tried checkboxid.setValue(true/false); where checkboxid is either name or id of the checkbox?
#2
04/28/2010 (8:15 am)
I did find that last night, thanks.