Thegr8test
Member
I want to use a script found in zvitors mfa2 mod to match a projectile to the players current palette but I'm not sure how to write the script in the projectiles text file. How should I adapt it to a different character?
here's the script
and here's an example of the script in one of black panthers projectiles
here's the script
Code:
void paleta(int Pal)
{//
void self = getlocalvar("self"); //Get calling entity.
int oPal = getentityproperty(self, "mapdefault");
if (Pal > 0){
changeentityproperty(self, "colourmap", Pal);
}
else{
changeentityproperty(self, "colourmap", oPal);
and here's an example of the script in one of black panthers projectiles
Code:
@script
void self = getlocalvar("self");
int cor = getglobalvar("palBlack");
changeentityproperty(self, "map", cor);
@end_script