Jump to content
Sign in to follow this  
dragon zen

How to get the value of "ToolBox"(Control)??

Recommended Posts

Hello Friends:

If I use a toolbox, I know there is a "onToolBoxSelChanged" function.

But my question is, how can I get the value of current selection?? I tried lbCurSel (it is OK for ListBox), but it always return -1.

So I ask anybody can tell me what is "lbCurSel" for ToolBox?? (unnecessary "value", just return which selection player use.)

Thanks.

===============

Thank second floor, but I don't want to use global variable.

Edited by Dragon Zen

Share this post


Link to post
Share on other sites

onToolBoxSelChanged returns the selected entry as _this select 1. Just save this in a global variable:

onToolBoxSelChanged = "MyToolBoxSelection = (_this select 1)";

Share this post


Link to post
Share on other sites
onToolBoxSelChanged returns the selected entry as _this select 1. Just save this in a global variable:

onToolBoxSelChanged = "MyToolBoxSelection = (_this select 1)";

Yes, I know , but I don't want to use global variable.

Because I am studying MP mission now, I don't know whether global variable will crash between different players. Of course, I don't understand the mechanism of MP yet.:D

Share this post


Link to post
Share on other sites

If this can't be get, I have to change toolbox to listbox...

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×