For example...
PHP Code:
new GuiRadioCtrl("Test_Radio1") {
profile = GuiBlueRadioProfile;
x = 10;
y = 10;
width = 100;
height = 20;
groupnum = 1;
text = "Radio button 1";
thiso.catchevent(this, "onAction", "onRadioButtonChanged"); // Take note of this line
}
Then you can use the following to determine if it has been clicked or not:
PHP Code:
function onRadioButtonChanged(temp.object)
player.chat = "Radio button '" @ temp.object.name @ "' clicked!";