|
Post by NicusorN5 on May 21, 2016 16:03:31 GMT
When Cam-Weapon_Pickaxe is under 2 meters , my game freezes for 1/2 minutes. ///Global Variables //Floats float HP = 100; float Zombie1HP = 60; float WeaponDamage = 0 ; //Strings string Weapon = "null"; string Wep1 = "null"; string Wep2 = "null"; string Wep3 = "null"; string Wep4 = "null"; string Wep5 = "null"; string Wep6 = "null"; string Wep7 = "null"; string Wep8 = "null"; void Main() { ///Wep Pickaxe Spawner (WEP 1) Vector3 Cam,Weapon_Pickaxe; iObjectLocation(OBJ_66,Cam); iObjectLocation(OBJ_88,Weapon_Pickaxe); if (iVectorLength(Cam-Weapon_Pickaxe)<2) { iObjectShow(OBJ_44); iObjectRefresh(OBJ_44,".\\3DRad_res\\objects\\Skinmesh\\data\\CubeWars_Weapons_Melee_Pickaxe\\000_mesh.x"); iObjectHide(OBJ_88); iObjectStop(OBJ_110); iObjectStop(OBJ_132); Weapon = "pickaxe" ; WeaponDamage = -60; if (Wep1 =="null") { iObjectShow(OBJ_286); iObjectRefresh(OBJ_286,".\\3DRad_res\\objects\\Sprite\\data\\Pickaxe.png"); } } ///Zombie 1 OUT_156 =1 ; if (IN_198 ==1) { Zombie1HP += WeaponDamage ; } if (Zombie1HP <= 0 ) { iObjectStop(OBJ_220); iObjectStop(OBJ_154); } if (IN_462 == 1) HP -= 30; }
|
|
|
Post by NicusorN5 on May 22, 2016 10:30:56 GMT
LOL i fixed it by removing the 2 Vectors and replacing them with a EOL.
|
|