OFPEC Forum

Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: GameAdd1cted on 20 Jan 2010, 21:44:42

Title: Checkbox state [SOLVED]
Post by: GameAdd1cted on 20 Jan 2010, 21:44:42
I am trying to obtain somehow the current state of a check box (e.g. know if a player "ticked" an option).
I followed the provided example (), but I don't know how to get the state.

Similar topic: http://forums.bistudio.com/showthread.php?t=72030 without answer.

Any idea? If there is no solution, a combobox can be used; nevertheless, I think checkboxes are better in this case.

Thank you.

Edited:
Just managed to do this:
Code: [Select]
onCheckBoxesSelChanged = "Gadtest399 = (_this select 2);"
It works, but is there a better way to do is? Something like lbCheckBoxesCurState...