http://sl.pastebin.com/faC7aVHL
Lookes like this in unit files:
Code: Select all
toggle1 = 3,
toggle1a = [[Option 1a]],
toggle1b = [[Option 1b]],
toggle1c = [[Option 1c]],
toggle1tooltip = [[1st Options]],
toggle2 = 2,
toggle2a = [[Option 2a]],
toggle2b = [[Option 2b]],
toggle2tooltip = [[2nd Option]],
toggle3 = 1,
toggle3a = [[Super D Gun]],
toggle3tooltip = [[Fires super Dgun]],
Code: Select all
(t,value)
{
if(t==1)
{
if(value==0)
{
opt1= 1; //can really do anything here this just means the toggle settings a,b,c where a =0, b=1, c=2. Value is set to 0 when unit is created
e }
if(value==1)
{
opt1= 2; //this is what well be slected the 1st time you hit the switch
}
if(value==2)
{
opt1= 3;
}
}
if(t==2)
{
if(value==0)
{
opt2 = 1;
}
if(value==1)
{
opt2 = 2;
}
}
if(t==3)
{
if(value==0 )
{
superdgun = true;
}
}
}