//SPRITE_TYPE_DIABLO_EASTER_EGG_PORTAL;
//placeOnGround = false;
teleporter = true;

Init(vector(1.5, 3.0, 3.0), 1844, 0, 0, 1, 0);

ai.AddNode(321, -1.0, -1.0, 0); // AI_TYPE_DIABLO_TOWN_PORTAL;

//5  (need to set target) float distance, float checkDelay, ESoundEnum sound, float volume, float pitch;
ai.AddNode(290, -1.0, -1.0, 5, 175.0, 0.1, 64.0, 4.0, 1.0); // AI_TYPE_TELEPORT_TO_TARGET_IF_CLOSE;

//8 bool attached, bool UI, ESoundEnum sound, float volumeMin, float volumeMax, float pitchMin, float pitchMax, float rate(-1=once);
//ai.AddNode(56, -1.0, -1.0, 8, 1.0, 0.0, 389.0, 1.0, 1.0, 1.0, 1.0, -1.0);

//lightOffset = vector(0.0, 0.0, 0.23 * cubeSize);
lightFlickering = true;

AddLight();

lightColor = vector(0.1, 0.0, 1.0);

light.LightFunctionFadeDistance = 50.0 * scaleHack;
light.CastShadows = true;
light.LightFalloffExponent = 40.0;
light.Intensity = 15.0;
//light.AttenuationRadius = 10.0 * cubeSize * scaleHack;