Game Development Community

Creating a list

by Vishal Bhanderi · in Torque X 2D · 01/05/2008 (1:19 pm) · 2 replies

Hi guys,

Im having problems creating a list where i can chose a from predefined list made in c#. In TXB the list dosn't work. For example

in C#

list[0]='selection1'
list[1]='selection2'
etc

Then in TXB there would be a list where i choose which type i want.

Back in C# during run time there will be a selection statement to figure out which one was chosen.

Can this be done ?

#1
01/07/2008 (1:40 pm)
See if this thread helps, it seems like the same thing you are asking about.
www.garagegames.com/mg/forums/result.thread.php?qt=70241
#2
01/08/2008 (1:24 am)
Thanks Joshua

That way should be fine with some workarounds. I am trying to get a list from C# but i guess TXB won't know the values in the list since it doesn't execute the code.