Solved Pallet to summoned entity

Question that is answered or resolved.

ZVitor

Active member
Hey guys on my previous game, (cant remember which engine used in 2014)  i was using this code to set pallet to entity:

at main entity:
Code:
	void self = getlocalvar("self");
	int cor = getentityproperty(self,"map");
        setglobalvar("palChar", cor);

and at summoned:
Code:
	void self = getlocalvar("self");
	int cor = getglobalvar("palChar");
       	changeentityproperty(self, "map", cor);

tested today, and work on old build, but not working on 4183 and 4287,
i missed some new functions which replace this ones?
 
You don't need a global var for that. Use spawnmap function (check grabscript.c at my mod or take a look at Vision, his down up move uses it.)
 
Back
Top Bottom