Blink effect script request

Viper Snake

Member
Could someone please modify this blink effect script so that it goes through 3 colourmaps instead of just one? I'm trying to turn this:
https://imgflip.com/gifgenerator
into this:
https://imgflip.com/gifgenerator

Code:
void main()
{// Blink effect script
    void self = getlocalvar("self"); //Get calling entity.
    void Health = getentityproperty(self,"health");

    if (Health > 0){
	changeentityproperty(self, "colourmap", 1);
	changeentityproperty(self, "maptime", 60 + openborvariant("elapsed_time"));
    }
}
 
The only thing crossed my mind is to spawn an entity to do the color change instead of using direct script.

And if it's only color change, script based drawmethod is better solution
 
And if it's only color change, script based drawmethod is better solution
Not it this case. Take a look in what he wants to do: its a color index shift, not just a tint.

I was going to make a try on this but I had no time. But if I am not wrong, its a matter to store elapsed_time and use a modolus operator to change the map, no?
 
Back
Top Bottom