i wanna spawn units on my map.
please check my scar file for errors.
thank you very much...
Code
import("ScarUtil.scar")
function OnInit()
-- [[ Markers ]]
-- [[ Squad Groups ]]
-- [[ Entity Groups ]]
Rule_AddInterval(Spawn_Pak88, 100)
end
Scar_AddInit(OnInit)
function Spawn_Pak88()
--create squad group
sg_ax_spawn_pak88_1 = SGroup_CreateIfNotFound("ax_spawn_pak88_1")
player1 = World_GetPlayerAt(1)
--our blueprint
bp_pak88_squad = Util_GetSquadBlueprintID("sbps/races/german/vehicles/at_gun_squad/pak43_88mm_at_gun_squad_mp.lua")
--now spawn the stuff
Util_CreateSquadsAtMarker(player1, sg_AX_Spawn_Pak88_1, spawn_pak88, mkr_AX_Spawn_Pak88_1, 1)
end