I am currently using this .scar file worked fine before adding the m1931(b-4) and the howitzer(105mm howitzer) now game freeze's at startup. I believe that I dont know how to transition correctly between them.
--------------------------------------------------------------------------
function OnInit()
Cmd_CriticalHit(World_GetPlayerAt(1), eg_vehicles,
CRIT.VEHICLE_ABANDON, 0)
--Population cap override value
g_popCapOverRide = 500
for i = 1, World_GetPlayerCount() do
local player = World_GetPlayerAt(i)
Player_SetPopCapOverride(player, g_popCapOverRide)
end
eg_pak43 = EGroup_CreateIfNotFound("eg_pak43")
Util_CreateEntities(nil, eg_pak43,
EBP.GERMAN.PAK43_88MM_AT_GUN_MP,
mkr_56, 1 )
Util_CreateEntities(nil, eg_pak43,
EBP.GERMAN.PAK43_88MM_AT_GUN_MP,
mkr_57, 1 )
eg_m1931 = EGroup_CreateIfNotFound("eg_m1931")
Util_CreateEntities(nil, eg_m1931,
EBP.SOVIET.M1931_203MM_B-4_HOWITZER_ARTILLERY_MP,
mkr_113, 1 )
Util_CreateEntities(nil, eg_m1931,
EBP.SOVIET.M1931_203MM_B-4_HOWITZER_ARTILLERY_MP,
mkr_114, 1 )
Util_CreateEntities(nil, eg_m1931,
EBP.SOVIET.M1931_203MM_B-4_HOWITZER_ARTILLERY_MP,
mkr_115, 1 )
Util_CreateEntities(nil, eg_m1931,
EBP.SOVIET.M1931_203MM_B-4_HOWITZER_ARTILLERY_MP,
mkr_116, 1 )
Util_CreateEntities(nil, eg_m1931,
EBP.SOVIET.M1931_203MM_B-4_HOWITZER_ARTILLERY_MP,
mkr_117, 1 )
Util_CreateEntities(nil, eg_m1931,
EBP.SOVIET.M1931_203MM_B-4_HOWITZER_ARTILLERY_MP,
mkr_118, 1 )
eg_howitzer = EGroup_CreateIfNotFound("eg_howitzer")
Util_CreateEntities(nil, eg_howitzer,
EBP.GERMAN.HOWITZER_105MM_LE_FH18_MP,
mkr_174, 1 )
Util_CreateEntities(nil, eg_howitzer,
EBP.GERMAN.HOWITZER_105MM_LE_FH18_MP,
mkr_175, 1 )
Util_CreateEntities(nil, eg_howitzer,
EBP.GERMAN.HOWITZER_105MM_LE_FH18_MP,
mkr_176, 1 )
Util_CreateEntities(nil, eg_howitzer,
EBP.GERMAN.HOWITZER_105MM_LE_FH18_MP,
mkr_177, 1 )
Util_CreateEntities(nil, eg_howitzer,
EBP.GERMAN.HOWITZER_105MM_LE_FH18_MP,
mkr_178, 1 )
Util_CreateEntities(nil, eg_howitzer,
EBP.GERMAN.HOWITZER_105MM_LE_FH18_MP,
mkr_179, 1 )
Util_CreateEntities(nil, eg_howitzer,
EBP.GERMAN.HOWITZER_105MM_LE_FH18_MP,
mkr_180, 1 )
end
Scar_AddInit(OnInit)
|
function OnInit()
Cmd_CriticalHit(World_GetPlayerAt(1), eg_vehicles,
CRIT.VEHICLE_ABANDON, 0)
eg_pak43 = EGroup_CreateIfNotFound("eg_pak43")
Util_CreateEntities(nil, eg_pak43,
EBP.GERMAN.PAK43_88MM_AT_GUN_MP,
mkr_75, 1 )
Util_CreateEntities(nil, eg_pak43,
EBP.GERMAN.PAK43_88MM_AT_GUN_MP,
mkr_81, 1 )
Util_CreateEntities(nil, eg_pak43,
EBP.GERMAN.PAK43_88MM_AT_GUN_MP,
mkr_82, 1 )
Util_CreateEntities(nil, eg_pak43,
EBP.GERMAN.PAK43_88MM_AT_GUN_MP,
mkr_83, 1 )
Util_CreateEntities(nil, eg_pak43,
EBP.GERMAN.PAK43_88MM_AT_GUN_MP,
mkr_84, 1 )
Util_CreateEntities(nil, eg_pak43,
EBP.GERMAN.PAK43_88MM_AT_GUN_MP,
mkr_85, 1 )
Util_CreateEntities(nil, eg_pak43,
EBP.GERMAN.PAK43_88MM_AT_GUN_MP,
mkr_86, 1 )
Util_CreateEntities(nil, eg_pak43,
EBP.GERMAN.PAK43_88MM_AT_GUN_MP,
mkr_87, 1 )
Util_CreateEntities(nil, eg_pak43,
EBP.GERMAN.PAK43_88MM_AT_GUN_MP,
mkr_88, 1 )
Util_CreateEntities(nil, eg_pak43,
EBP.GERMAN.PAK43_88MM_AT_GUN_MP,
mkr_89, 1 )
Util_CreateEntities(nil, eg_pak43,
EBP.GERMAN.PAK43_88MM_AT_GUN_MP,
mkr_90, 1 )
Util_CreateEntities(nil, eg_pak43,
EBP.GERMAN.PAK43_88MM_AT_GUN_MP,
mkr_231, 1 )
Util_CreateEntities(nil, eg_pak43,
EBP.GERMAN.PAK43_88MM_AT_GUN_MP,
mkr_232, 1 )
end
Scar_AddInit(OnInit) |