is it possible to make a pad that flashes diffrent colors or random colors with a flip of a swicth?
any help is appreciated
zell
Random flashing Colors
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
- Kappes Buur
-
- Posts: 4182
- Joined: Thu Jul 17, 2003 12:19 am
- Graphics Processor: nVidia (Legacy GZDoom)
- Location: British Columbia, Canada
- Contact:
- Kappes Buur
-
- Posts: 4182
- Joined: Thu Jul 17, 2003 12:19 am
- Graphics Processor: nVidia (Legacy GZDoom)
- Location: British Columbia, Canada
- Contact:
I made a small map with four sectors, which I tagged 1, 2, 3, 4. Then I added this script:
Granted, it is rather simple. But it shows you how it can be done.
Code: Select all
#include "zcommon.acs"
script 10 open
{
Sector_SetColor (1, 255, 0, 0);
Sector_SetColor (2, 255, 255, 255);
Sector_SetColor (3, 255, 128, 0);
Sector_SetColor (4, 128, 255, 255);
delay(random(1, 15));
Sector_SetColor (1, 0, 255, 0);
Sector_SetColor (4, 255, 0, 0);
delay(random(1, 15));
Sector_SetColor (2, 0, 0, 0);
Sector_SetColor (3, 255, 255, 0);
Sector_SetColor (4, 255, 0, 255);
delay(random(1, 15));
Sector_SetColor (1, 0, 0, 255);
Sector_SetColor (2, 255, 0, 0);
delay(random(1, 15));
restart;
}