I'm here with my next problem. I've made a static location for my "mission" and I want the box to spawn there, but it keeps giving me this annoying error as shown in the title above.
//////////////////////////////////////////////////////////////////
// Function file for Armed Assault
// Created by: TODO: Author Name
//////////////////////////////////////////////////////////////////
private ["_HQ","_unitGroup","_box1","_squad1","_squad2"];
sleep 1;
/////////////////////////////////////////////////////////////////
[nil,nil,rTitleText,"The Skalisty Island chest has been spawned.", "PLAIN",10] call RE;
//don't edit this, unless you know what you are doing!
_HQ = createCenter east;
_unitGroup = createGroup east;
EAST setfriend [WEST,0];
west setfriend [civilian,0];
//end -- dont edit --
staticcoords = [
[4896.16,10016.5,0]
];
//PUTS OBJECTS DOWN
//creates the box
_box1 = createVehicle ["GERBasicWeapons_EP1",[ _box1 setpos [(getpos staticcoords select 0)+0,(getpos staticcoords select 1)-0]],[],0,"can_collide"];
//clears the loot that was inside already.
clearmagazineCargoGlobal _box1;
clearweaponCargoGlobal _box1;
_box1 addWeaponCargoGlobal ["M240",2];
_box1 addWeaponCargoGlobal ["M249",1];
_box1 addMagazineCargoGlobal ["ItemBriefcase50oz",1];
_box1 addMagazineCargoGlobal ["ItemGoldBar",5];
//Spawn Unit
_squad1 = _unitGroup createUnit ["Bandit1_DZ", [ _squad1 setpos [(getpos _box1 select 0)+2,(getpos _box1 select 1)-6]], [], 10, "PRIVATE"];
_squad2 = _unitGroup createUnit ["Bandit1_DZ", [ _squad2 setpos [(getpos _box1 select 0)-2,(getpos _box1 select 1)+6]], [], 10, "PRIVATE"];
//set them to hostile
[_squad1] joinSilent _unitGroup;
[_squad2] joinSilent _unitGroup;
//Add the behaviourS1
_squad1 enableAI "TARGET";
_squad1 enableAI "AUTOTARGET";
_squad1 enableAI "MOVE";
_squad1 enableAI "ANIM";
_squad1 enableAI "FSM";
_squad1 setCombatMode "RED";
_squad1 setBehaviour "COMBAT";
//Gives AI Weapons
_squad1 addWeapon "M240";
_squad1 addMagazine "100Rnd_762x51_M240";
_squad1 addMagazine "100Rnd_762x51_M240";
_squad2 addWeapon "M136";
_squad2 addMagazine "M136";
I hope one of oyu can help me, since I ain't able to find the 'mistake' by myself.
Question
Darihon
Hello,
I'm here with my next problem. I've made a static location for my "mission" and I want the box to spawn there, but it keeps giving me this annoying error as shown in the title above.
I hope one of oyu can help me, since I ain't able to find the 'mistake' by myself.
Thanks in advance,
Darryl
Link to comment
Share on other sites
11 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now