UGX-Mods

Call of Duty 5: World at War => Help Desk => Scripting => Topic started by: DeletedUser on January 26, 2021, 12:03:55 am

Title: how to turn lights on/off in a simple increment/decrement script? [SOLVED]
Post by: DeletedUser on January 26, 2021, 12:03:55 am
so the script i want the light control to go in works pretty much like this-

```
whatever = 0;
while(1)
{
    if(whatever > 0)
    {
        whatever--;
        //light "on" code here
    }
    if(whatever == 0)
    {
        //light off code here
    }
    wait .5;
}
```

i put the above example of how my script works so you can see that adding a trigger to the light is no good. (least i think thats the case anyway).

any help would be appreciate.

Thanks

i solved this myself. if you want to know how just hit me up on ugx waw discord with@Phil81334