list of TiD's passed to a script...
Posted: Thu Aug 04, 2016 1:13 pm
A bit unclear maybe on the title but basically what I want to do is make multiple lines or sectors change (all the same way) using one script, sort of like:
Can I do this with an array where the script pulls all values, or do I have to do:
etc...?
I have no problem doing this (there'll be about 100 lines of code for what I want) but I'm just wondering if theres a tidier way of doing this?
thanks
EDIT:
If not, thinking about it, my tags in this instance are consecutive, so I suppose I could do something like:
should work. An array solution would be handy though for non-consecutive TiD's...
Code: Select all
setlineactivation([1,2,3,4,5,6,etc...], SPAC_None);Code: Select all
setlineactivation(1, SPAC_None);
setlineactivation(2, SPAC_None);
setlineactivation(3, SPAC_None);
setlineactivation(4, SPAC_None);
I have no problem doing this (there'll be about 100 lines of code for what I want) but I'm just wondering if theres a tidier way of doing this?
thanks
EDIT:
If not, thinking about it, my tags in this instance are consecutive, so I suppose I could do something like:
Code: Select all
int LiD =1 ;
while (LiD<=20)
{
setlineactivation(LiD, SPAC_None);
LiD ++;
}