O Ilusionista
Captain 100K
I've made to small functions to change the player palette - one to change to a specific palette and one to revert it back
But the last one isn't workin while in animscript. If I past the same code on a didhitscript, it works.
Any clue of what is going on?
Edit:
Solution by White Dragon:
Code:
void changepal(int Pal)
{// change the current pallete
// O Ilusionista - 20/11/2013
void self = getlocalvar("self"); //Get calling entity.
int oPal = getentityproperty(self, "mapdefault");
changeentityproperty(self, "map", Pal);
}
Code:
void resetpal()
{// revert to original palette
// O Ilusionista - 20/11/2013
void self = getlocalvar("self"); //Get calling entity.
int oPal = getentityproperty(self, "mapdefault");
changeentityproperty(self, "map", oPal);
}
But the last one isn't workin while in animscript. If I past the same code on a didhitscript, it works.
Any clue of what is going on?
Edit:
Solution by White Dragon:
Code:
void changepal(int Pal)
{// change the current pallete
// O Ilusionista - 20/11/2013
void self = getlocalvar("self"); //Get calling entity.
changeentityproperty(self, "map", Pal);
}
void resetpal()
{// revert to original palette
// O Ilusionista - 20/11/2013 - Thanks White Dragon!
void self = getlocalvar("self"); //Get calling entity.
changeentityproperty(self, "map", 0);
}