name SpawnSpot
type none
offscreenkill 3000
anim idle
@script
void self = getlocalvar("self");
void P1 = getplayerproperty(0, "entity");
void P2 = getplayerproperty(1, "entity");
void P3 = getplayerproperty(2, "entity");
if(P1){
void P1Ani = getentityproperty(P1,"animationID");
if(P1Ani == openborconstant("ANI_RESPAWN")){
int x = getentityproperty(self,"x");
int z = getentityproperty(self,"z");
changeentityproperty(P1, "position", x, z, 0);
}
}
if(P2){
void P2Ani = getentityproperty(P2,"animationID");
if(P2Ani == openborconstant("ANI_RESPAWN")){
int x = getentityproperty(self,"x");
int z = getentityproperty(self,"z");
changeentityproperty(P2, "position", x, z, 0);
}
}
if(P3){
void P3Ani = getentityproperty(P3,"animationID");
if(P3Ani == openborconstant("ANI_RESPAWN")){
int x = getentityproperty(self,"x");
int z = getentityproperty(self,"z");
changeentityproperty(P3, "position", x, z, 0);
}
}
@end_script
loop 1
delay 1
offset 1 1
frame data/chars/misc/empty.gif
frame data/chars/misc/empty.gif
frame data/chars/misc/empty.gif