void main() { object oDoor = GetObjectByTag("px_door_intholder"); if(GetLocalInt(oDoor,"spawned") == 0) { CreateObject(OBJECT_TYPE_CREATURE,"px_berserk_kobbo",GetLocation(GetWaypointByTag("px_berserk_kobbo"))); SetLocalInt(oDoor,"spawned",1); } }