ACS Clientside Sector_SetColor - doesn't do anything.
Posted: Sat Dec 06, 2014 7:06 pm
I am trying to turn everything red and white when player dies.
But obviously, I need to change it just for one client (the one that died).
However Sector_SetColor doesn't do anything when I tried this on a server.
Also the "light_raisebyvalue" works without problem!
Here is top of the script
Here is the important part...
I know desyncing the client and server is considered a sin worthy of eternal damnation, but the resulting effect from the sector_setcolor would be totally worth it
plz help!
But obviously, I need to change it just for one client (the one that died).
However Sector_SetColor doesn't do anything when I tried this on a server.
Also the "light_raisebyvalue" works without problem!
Here is top of the script
Code: Select all
script 752 enter clientside
{
if(isTitlemap()) { terminate; }
if(consoleplayerNumber() != playernumber()) { terminate; }
.. stuff ..
Code: Select all
... stuff ...
if(GameType() == GAME_SINGLE_PLAYER || getCvar("survival") > 0) {
for(int di = 0;di < 500;di++) {
Light_RaiseByValue(di,170);
Sector_SetColor(di,255,90,90,210);
}
}
} //end of script
plz help!