Hi,
I've made an enemy-spawning sprite, but I want it to spawn the actor defined in the sprite's lotag.
I mean that if the sprite's lotag is 1680, it spawns a Lizard trooper.
How do I do this?
Superthijs, on 17 February 2012 - 09:51 AM, said:
Superthijs, on 17 February 2012 - 09:51 AM, said:
The Mighty Bison, on 17 February 2012 - 09:57 AM, said:
Fox, on 17 February 2012 - 11:03 AM, said:
gamevar temp 0 0
onevent EVENT_EGS
ifspawnedby RESPAWN
{
getactor[THISACTOR].owner temp
setactor[THISACTOR].pal sprite[temp].pal
}
endevent
The Mighty Bison, on 17 February 2012 - 09:57 AM, said:
Superthijs, on 18 February 2012 - 05:05 AM, said: