spawnbind and mapindex

Gurtag

Active member
hey guys i edited a spawnbind script to also spawn the entity with the same map index as the spawner entity, good thing is that doesnt crash lol, bad thing is that doesnt work either.

any idea of what is wrong? here is the script:

Code:
void spawnbindind(void Name, float dx, float dy, float dz, int iDir, int iBind)
{ // Spawn and bind other entity with desired animation
   void self = getlocalvar("self");
   void Spawn;
   int  iMap = getentityproperty(self, "map"); // Get caller's remap.

   Spawn = spawn01(Name, dx, dy, 0);
   bindentity(Spawn, self, dx, dz, dy, iDir, iBind);
   changeentityproperty(Spawn, "map", iMap); //Set map.
}
 
Back
Top Bottom