int EntitySpawn(int x, int y, string chr)
Spawn entity at tile x,y on currently loaded map using .chr file. EntitySpawn will return the index of the entity for interface with entity variables.
int currentplayer = EntitySpawn(10, 10, "Hero.chr"); SetPlayer(currentplayer); entity.speed[currentplayer]=100;
There are no talkbacks on this documentation page yet. Post the first?
Doc Nav |
Your docs |