//:://///////////////////////////////////////////// //:: Name x2_def_heartbeat //:: Copyright (c) 2001 Bioware Corp. //::////////////////////////////////////////////// /* Default Heartbeat script */ //::////////////////////////////////////////////// //:: Created By: Keith Warner //:: Created On: June 11/03 //::////////////////////////////////////////////// location GetRandomLocation(object oObject) { location lLoc = GetLocation(oObject); float fFacing = GetFacing(oObject); object oArea = GetArea(oObject); vector vVector = GetPositionFromLocation(lLoc); /* switch ( Random(5) ) { case 0: vVector.x += Random(6) - 3; vVector.y += Random(6) - 3; vVector.z += 3; break; case 1: vVector.x += 3; vVector.y += Random(6) - 3; vVector.z += Random(6) - 3; break; case 2: vVector.x -= 3; vVector.y += Random(6) - 3; vVector.z += Random(6) - 3; break; case 3: vVector.x += Random(6) - 3; vVector.y += 3; vVector.z += Random(6) - 3; break; case 4: vVector.x += Random(6) - 3; vVector.y -= 3; vVector.z += Random(6) - 3; break; } */ vVector.x += Random(6) - 3; vVector.y += Random(6) - 3; vVector.z += Random(6) - 3; lLoc = Location(oArea,vVector,fFacing); return lLoc; } void main() { ExecuteScript("nw_c2_default1", OBJECT_SELF); effect eFlame = EffectVisualEffect(VFX_IMP_FLAME_M); ApplyEffectAtLocation(DURATION_TYPE_INSTANT,eFlame,GetRandomLocation(OBJECT_SELF)); DelayCommand(0.5,ApplyEffectAtLocation(DURATION_TYPE_INSTANT,eFlame,GetRandomLocation(OBJECT_SELF))); DelayCommand(1.0,ApplyEffectAtLocation(DURATION_TYPE_INSTANT,eFlame,GetRandomLocation(OBJECT_SELF))); DelayCommand(1.5,ApplyEffectAtLocation(DURATION_TYPE_INSTANT,eFlame,GetRandomLocation(OBJECT_SELF))); DelayCommand(2.0,ApplyEffectAtLocation(DURATION_TYPE_INSTANT,eFlame,GetRandomLocation(OBJECT_SELF))); DelayCommand(2.5,ApplyEffectAtLocation(DURATION_TYPE_INSTANT,eFlame,GetRandomLocation(OBJECT_SELF))); DelayCommand(3.0,ApplyEffectAtLocation(DURATION_TYPE_INSTANT,eFlame,GetRandomLocation(OBJECT_SELF))); DelayCommand(3.5,ApplyEffectAtLocation(DURATION_TYPE_INSTANT,eFlame,GetRandomLocation(OBJECT_SELF))); DelayCommand(4.0,ApplyEffectAtLocation(DURATION_TYPE_INSTANT,eFlame,GetRandomLocation(OBJECT_SELF))); DelayCommand(4.5,ApplyEffectAtLocation(DURATION_TYPE_INSTANT,eFlame,GetRandomLocation(OBJECT_SELF))); DelayCommand(5.0,ApplyEffectAtLocation(DURATION_TYPE_INSTANT,eFlame,GetRandomLocation(OBJECT_SELF))); DelayCommand(5.5,ApplyEffectAtLocation(DURATION_TYPE_INSTANT,eFlame,GetRandomLocation(OBJECT_SELF))); }