O Ilusionista
Captain 100K
Hi,
I need to get the palette of a entity as colourtable to apply to another entity. I don't want to get its index (like Map or ColourMap), I need to get the colourtable.
I know I can get a colourtable using this:
But when I try to change the new spawn colourtable, it crashes openbor
Script function 'changeentityproperty' returned an exception, check the manual for details.
parameters: #190034032, 36, #193190288,
What I am doing wrong?
I need to get the palette of a entity as colourtable to apply to another entity. I don't want to get its index (like Map or ColourMap), I need to get the colourtable.
I know I can get a colourtable using this:
(the "0" its the index?)int iMap = getentityproperty(self, "colourtable", 0);
But when I try to change the new spawn colourtable, it crashes openbor
changeentityproperty(vSpawn, "colourtable", iMap);
Script function 'changeentityproperty' returned an exception, check the manual for details.
parameters: #190034032, 36, #193190288,
What I am doing wrong?