PDA

View Full Version : Channel plugin servers



Dodgy
08-06-2011, 02:51 AM
Heya,

The channel plugin server seems to be inaccessible by lscript, I'm calling this code and never get a server returned, either by using the item, or the channel of that item.


item=Scene().firstSelect();

pluginstate=nil;
i=1;
mychannel=item.firstChannel();
while(mychannel)
{
myserver=item.server(SERVER_CHANNEL_H,i);
if(myserver)
{
pluginstate[i]=item.serverFlags(SERVER_CHANNEL_H,i);
EnableServer(SERVER_CHANNEL_H,i,0); //0 enables, 1 disables
i++;
}
mychannel=item.nextChannel();
}


Does anyone know how to do this? Or does this need to be fixed?