16-bit Fighter
Active member
In my mod a char uses the projectile command and I'd like the projectile's palette to be according the char's one.
I created an onspawnscript for the projectile's entity but nothing happens:
Any idea about the problem please?
I created an onspawnscript for the projectile's entity but nothing happens:
C:
void main ()
{
void self = getlocalvar("self");
void parent = getentityproperty(self, "parent");
int PMap = getentityproperty(parent, "map");
if(parent!=NULL()){
changeentityproperty(self, "map", PMap);
}
}
Any idea about the problem please?