colourtable

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:
int iMap = getentityproperty(self, "colourtable", 0);
(the "0" its the index?)

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?
 
Back
Top Bottom