Learnt that radio buttons cant be toggled off.

This commit is contained in:
Cooldude2606
2017-12-15 21:13:53 +00:00
parent 9bca665d08
commit 5a3d2a496a

View File

@@ -97,10 +97,8 @@ end,function(player,element)
player.cheat_mode = false player.cheat_mode = false
end) end)
radio_test = Gui.inputs.add_checkbox('test-radio',true,'Cheat Mode',function(parent) radio_test = Gui.inputs.add_checkbox('test-radio',true,'Kill Self',function(parent)
return game.players[parent.player_index].cheat_mode return game.players[parent.player_index].in_combat
end,function(player,element) end,function(player,element)
player.cheat_mode = true if player.character then player.character.die() end
end,function(player,element)
player.cheat_mode = false
end) end)