Jump to content
Sign in to follow this  
{USI}_Zombie

running an sqs from inside an sqf?

Recommended Posts

I tried to run

[u1] exec "UNIT_teamlead.sqs"

inside my init.sqf and it didn't execute, so how do you run a sqs in the init.sqf?

Share this post


Link to post
Share on other sites

Do not forget the semicolon at the end of each command line in a file .sqf

[u1] exec "UNIT_teamlead.sqs";

Share this post


Link to post
Share on other sites

thanks, but I actually do have them..here is the entire file:

init.sqf

execVM "briefing.sqf";

[u1] exec "UNIT_teamlead.sqs";

[u2] exec "UNIT_rifleman.sqs";

[u3] exec "UNIT_smaw.sqs";

[u4] exec "UNIT_corpsman.sqs";

[u5] exec "UNIT_grenadier.sqs";

[u6] exec "UNIT_sniper.sqs";

[u7] exec "UNIT_engineer.sqs";

[u8] exec "UNIT_machinegunner.sqs"

Share this post


Link to post
Share on other sites

try :

_null = [] execVM "briefing.sqf";

[u1] exec "UNIT_teamlead.sqs";

[u2] exec "UNIT_rifleman.sqs";

[u3] exec "UNIT_smaw.sqs";

[u4] exec "UNIT_corpsman.sqs";

[u5] exec "UNIT_grenadier.sqs";

[u6] exec "UNIT_sniper.sqs";

[u7] exec "UNIT_engineer.sqs";

[u8] exec "UNIT_machinegunner.sqs"

Share this post


Link to post
Share on other sites

thanks tom, I appreciate your input..it didn't appear to break anything but it didn't execute the scripts after the briefing.sqf either

Share this post


Link to post
Share on other sites

well, I admit it: without any surprise :D

So, to see where is the problem, do it :

execVM "briefing.sqf";

player sideChat "briefing.sqf";

[u1] exec "UNIT_teamlead.sqs";

[u2] exec "UNIT_rifleman.sqs";

[u3] exec "UNIT_smaw.sqs";

[u4] exec "UNIT_corpsman.sqs";

[u5] exec "UNIT_grenadier.sqs";

[u6] exec "UNIT_sniper.sqs";

[u7] exec "UNIT_engineer.sqs";

[u8] exec "UNIT_machinegunner.sqs"

player sideChat "UNIT_* passed";

If the exec pass without any problem, your player will say the magic sentence. If not, nothing will appear.

If your player says "UNIT_* passed", it means that the error is in your sqs scripts and not in the init. I think that's it cause I don't see any error in your exec.

Share this post


Link to post
Share on other sites

didn't get a sidechat message, but then again this is the init.sqf so maybe that's why?

The scripts work if placed in a trigger...here is one of them:

; ****************************************************************
; Custom unit script for Armed Assault
; Created with ArmA Edit - Version 1.3.4000
; HELP: Run this script from the INITIALIZATION box of the unit.
; CODE: [this] exec "UNIT_teamlead.sqs"
; ****************************************************************

; Get the unit parameter given
_unit = _this select 0

; Strip the units current gear
removeAllWeapons _unit

; Add the new gear to the unit
_unit addMagazine "30Rnd_556x45_Stanag"
_unit addMagazine "30Rnd_556x45_Stanag"
_unit addMagazine "30Rnd_556x45_Stanag"
_unit addMagazine "30Rnd_556x45_Stanag"
_unit addMagazine "30Rnd_556x45_Stanag"
_unit addMagazine "30Rnd_556x45_Stanag"
_unit addMagazine "30Rnd_556x45_Stanag"
_unit addMagazine "30Rnd_556x45_Stanag"
_unit addMagazine "30Rnd_556x45_Stanag"
_unit addMagazine "30Rnd_556x45_Stanag"
_unit addMagazine "30Rnd_556x45_Stanag"
_unit addMagazine "1Rnd_HE_M203"
_unit addMagazine "1Rnd_HE_M203"
_unit addMagazine "1Rnd_HE_M203"
_unit addMagazine "1Rnd_HE_M203"
_unit addWeapon "m8_carbinegl"
_unit selectWeapon "m8_carbinegl"
_unit addMagazine "LaserBatteries"
_unit addWeapon "LaserDesignator"
_unit addMagazine "15Rnd_9x19_M9"
_unit addMagazine "15Rnd_9x19_M9"
_unit addMagazine "15Rnd_9x19_M9"
_unit addMagazine "15Rnd_9x19_M9"
_unit addWeapon "M9"
_unit addWeapon "Binocular"

Exit

Share this post


Link to post
Share on other sites

I run a unit-specific .sqs from init.sqf, but with quotations:

["u1"] exec "UNIT_teamlead.sqs";

If that doesn't work, tell us what is in your .rpt.

Share this post


Link to post
Share on other sites

execVM "briefing.sqf";
[u1] exec "UNIT_teamlead.sqs";
[u2] exec "UNIT_rifleman.sqs";
[u3] exec "UNIT_smaw.sqs";
[u4] exec "UNIT_corpsman.sqs";
[u5] exec "UNIT_grenadier.sqs";
[u6] exec "UNIT_sniper.sqs";
[u7] exec "UNIT_engineer.sqs";
[u8] exec "UNIT_machinegunner.sqs"[b];[/b]  

Erm, did you forget one maybe?

Share this post


Link to post
Share on other sites

Cellus, tried your fix and still nothing. I got a lot of errors in the rpt, but when I call all those scripts from a trigger, I don't get the errors with my sqs's

rpt below: I also always get the errors with the halo scripts, but they are embedded so Am not sure why they error.

=====================================================================
== E:\Program Files\Bohemia Interactive\ArmA 2\arma2.exe
== "E:\Program Files\Bohemia Interactive\ArmA 2\arma2.exe" -nosplash -world=empty
=====================================================================
Exe timestamp: 2009/08/05 16:32:37
Current time:  2009/08/06 12:44:33

graphics:  D3D9, Device: NVIDIA GeForce GTX 285, Driver:nv4_disp.dll 6.14.11.9038
resolution:  1680x1050x32
Addons:
 CAAir2_C130J in ca\air2\c130j\, CAAir2_UH1Y in ca\air2\uh1y\
 CA_Animals2_Cow in ca\animals2\cow\, CABuildings2 in ca\buildings2\
 CAStructures_IndPipe1_todo_delete in ca\buildings2\ind_pipeline\indpipe1\
 Ind_SiloVelke in ca\buildings2\ind_cementworks\ind_silovelke\
 Chernarus in ca\chernarus\, CA_Dubbing in ca\dubbing\
 CA_Modules_DynO in ca\modules\dyno\, CASounds_Missions in ca\soundmissions\
 CAStructuresHouse_A_Office02 in ca\structures\house\a_office02\
 CAStructures_Proxy_BuildingParts in ca\structures\proxy_buildingparts\
 CAStructuresHouse_Church_02 in ca\structures\house\church_02\
 CAWeapons_2b14_82mm_Mortar in ca\weapons\podnos_2b14_82mm\
 CAWheeled2_HMMWV_BASE in ca\wheeled2\hmmwv\, CA_AIR2_Su25 in ca\air2\su25\
 CABuildingParts in ca\buildings2\buildingparts\
 CA_Missions_SecOps in ca\missions\som\
 CA_Missions_FirstAidSystem in ca\modules\fa\, CA_Modules_ZoRA in ca\modules\zora\
 pond_test in ca\structures\pond\
 CAStructuresLand_Nav_Boathouse in ca\structures\nav_boathouse\
 CAStructuresHouse_Church_03 in ca\structures\house\church_03\
 CAStructuresHouse_Church_05R in ca\structures\house\church_05r\
 CAWater2_LHD in ca\water2\lhd\, CAWheeled2_GAZ39371 in ca\wheeled2\gaz39371\
 CAWheeled2_Ikarus in ca\wheeled2\ikarus\
 CAHouseBlock_A in ca\buildings2\houseblocks\houseblock_a\
 Ind_Pec in ca\buildings2\ind_cementworks\ind_pec\
 CA_Missions_BattlefieldClearance in ca\modules\bc\
 CA_Missions_GarbageCollector in ca\modules\garbage_collector\
 CA_Modules_Marta in ca\modules\marta\
 CAStructuresHouse_A_FuelStation in ca\structures\house\a_fuelstation\
 CAStructures_Rail in ca\structures\rail\
 CAStructuresHouse_A_Hospital in ca\structures\house\a_hospital\
 CAWeapons_AmmoBoxes in ca\weapons\ammoboxes\
 CAWeapons2_HuntingRifle in ca\weapons2\huntingrifle\
 CAWheeled_Pickup in ca\wheeled\datsun_armed\
 CAWheeled2_M998A2_Avenger in ca\wheeled2\hmmwv\m998a2_avenger\
 CAWheeled2_MTVR in ca\wheeled2\mtvr\
 CA_Animals2_Dogs_Pastor in ca\animals2\dogs\pastor\
 CAHouseBlock_B in ca\buildings2\houseblocks\houseblock_b\
 Farm_WTower in ca\buildings2\farm_wtower\, CARoads2Dam in ca\roads2\dam\
 CASounds in ca\sounds\, CAStructures_Proxy_Ruins in ca\structures\proxy_ruins\
 CAStructures_Mil in ca\structures\mil\
 CAStructuresHouse_HouseV2 in ca\structures\house\housev2\
 CAStructuresHouse_Shed_Ind in ca\structures\shed_ind\
 Ind_SawMill in ca\structures\ind_sawmill\
 CAStructuresLand_Ind_Stack_Big in ca\structures\ind\
 CATracked2_T90 in ca\tracked2\t90\, CAWeapons_SPG9 in ca\weapons\spg9\
 CAWeapons_VSS_vintorez in ca\weapons\vss_vintorez\
 CAWeapons_ZU23 in ca\weapons\zu23\
 CAWeapons_Metis_AT_13 in ca\weapons\metis_at_13\
 CAWeapons_bizon in ca\weapons\bizon\
 CAWeapons_Warfare_weapons in ca\weapons\static\
 CAWheeled2_LADA in ca\wheeled2\lada\, CAWheeled2_BTR90 in ca\wheeled2\btr90\
 CA_Animals2_Rabbit in ca\animals2\rabbit\
 CA_Animals2_Anim_Config in ca\animals2\animconfig\
 Rail_House_01 in ca\buildings2\rail_house_01\
 CAHouseBlock_C in ca\buildings2\houseblocks\houseblock_c\
 Ind_Workshop01 in ca\buildings2\ind_workshop01\, CACharacters2 in ca\characters2\
 CA_Modules_Coin in ca\modules\coin\, CARoads2Bridge in ca\roads2\bridge\
 CASigns2 in ca\signs2\, CAStructures_A_BuildingWIP in ca\structures\a_buildingwip\
 CAStructuresLand_A_MunicipalOffice in ca\structures\a_municipaloffice\
 CAStructures_Castle in ca\structures\castle\
 CATracked2_2S6M_Tunguska in ca\tracked2\2s6m_tunguska\
 CATracked2_T34 in ca\tracked2\t34\, CAWater2_Fregata in ca\water2\fregata\
 CAWheeled in ca\wheeled\, Arma2_Ka52 in ca\air2\ka52\
 CAAir2_ChukarTarget in ca\air2\chukar\
 CAHouseBlock_D in ca\buildings2\houseblocks\houseblock_d\
 Barn_Metal in ca\buildings2\barn_metal\
 CA_Missions_Armory2 in ca\missions\armory\, CA_Missions in ca\missions\
 CAStructures_IndPipe1 in ca\structures\ind_pipeline\indpipe1\
 CAStructuresHouse_a_stationhouse in ca\structures\house\a_stationhouse\
 CAStructuresInd_Quarry in ca\structures\ind_quarry\
 CAweapons_m107 in ca\weapons\m107\, CAWeapons_M1014 in ca\weapons\m1014\
 CAWheeled2_LAV25 in ca\wheeled2\lav25\, CAWheeled2_Kamaz in ca\wheeled2\kamaz\
 CAWheeled3_TT650 in ca\wheeled3\tt650\, CAAir in ca\air\, HALO_Test in ca\air2\halo\
 CA_Anims in ca\anims\, Ind_Tank in ca\buildings2\ind_tank\
 Farm_Cowshed in ca\buildings2\farm_cowshed\
 Shed_wooden in ca\buildings2\shed_wooden\
 ind_silomale in ca\buildings2\ind_cementworks\ind_silomale\
 Ind_Dopravnik in ca\buildings2\ind_cementworks\ind_dopravnik\
 CA_Heads in ca\characters\heads\, CALanguage_missions in ca\languagemissions\
 BI_SRRS in ca\modules\srrs\, CA_Modules_UAV in ca\modules\uav\
 CA_Missions_AlternativeInjurySimulation in ca\modules\ais\
 CAStructuresHouse_rail_station_big in ca\structures\rail\rail_station_big\
 CAStructures in ca\structures\, CATracked2_BMP3 in ca\tracked2\bmp3\
 Warfare2 in ca\warfare2\, CAWater2_seafox in ca\water2\seafox\
 CAWheeled2_VWGolf in ca\wheeled2\vwgolf\, CAWheeled2_MMT in ca\wheeled2\mmt\
 CAAnimals in ca\animals\, CA_Animals2_Dogs_Fin in ca\animals2\dogs\fin\
 Misc_WaterStation in ca\buildings2\misc_waterstation\
 CATEC in ca\buildings2\buildingparts\signs\tec\
 A_GeneralStore_01 in ca\buildings2\a_generalstore_01\, CA_Editor in ca\editor\
 CA_Missions_Templates_SecOps in ca\missions\templates\secops.west\
 CA_Modules_Silvie in ca\modules\silvie\, CARocks2 in ca\rocks2\
 CAStructuresShed_Small in ca\structures\shed\shed_small\
 CAStructuresHouse_HouseBT in ca\structures\house\housebt\, CAUI in ca\ui\
 Utes in ca\utes\, CAWeapons in ca\weapons\, CAWeapons2 in ca\weapons2\
 CAAir2 in ca\air2\, CAAir3_Su34 in ca\air3\su34\
 CA_Anims_Wmn in ca\anims\characters\config\wmn\
 A_Crane_02 in ca\buildings2\a_crane_02\
 CABuildings2_Misc_Cargo in ca\buildings2\misc_cargo\
 CACharacters in ca\characters\
 CAStructuresHouse_HouseV in ca\structures\house\housev\, CAFonts in ca\uifonts\
 CAWheeled2_V3S in ca\wheeled2\v3s\, CAWheeled3_M1030 in ca\wheeled3\m1030\
 CAAir2_MV22 in ca\air2\mv22\, CAAir3 in ca\air3\
 CA_Animals2_Chicken in ca\animals2\birds\chicken\, CA_Animals2 in ca\animals2\
 CA_Anims_Sdr in ca\anims\characters\config\sdr\
 Misc_PowerStation in ca\buildings2\misc_powerstation\
 CABuildingParts_Signs in ca\buildings2\buildingparts\signs\
 IndPipe2 in ca\buildings2\ind_pipeline\indpipe2\
 Ind_Expedice in ca\buildings2\ind_cementworks\ind_expedice\
 Ind_Vysypka in ca\buildings2\ind_cementworks\ind_vysypka\, CAMisc in ca\misc\
 CA_Modules_clouds in ca\modules\clouds\, CA_Modules_Alice in ca\modules\alice\
 CA_Modules_Animals in ca\modules\animals\
 CAWheeled_Offroad in ca\wheeled\hilux_armed\, CAAir2_F35B in ca\air2\f35b\
 CAAir2_Pchela1T in ca\air2\pchela1t\, CA_Animals2_Sheep in ca\animals2\sheep\
 CA_Animals2_Dogs in ca\animals2\dogs\, Ind_Garage01 in ca\buildings2\ind_garage01\
 CAData in ca\, CA_Dubbing_Counterattack in ca\dubbing\counterattack\
 CALanguage in ca\language\, CA_Modules_ARTY in ca\modules\arty\
 CARoads2 in ca\roads2\, A_TVTower in ca\structures\a_tvtower\
 CAStructuresHouse in ca\structures\house\, CAWater in ca\water\
 CAWater2_Destroyer in ca\water2\destroyer\, CAWater2 in ca\water2\
 CAWeapons2_SMAW in ca\weapons2\smaw\
 CA_Animals2_WildBoar in ca\animals2\wildboar\
 CA_Anims_Char in ca\anims\characters\config\
 Shed_small in ca\buildings2\shed_small\
 CABuildings2_A_Pub in ca\buildings2\a_pub\, WarfareBuildings in ca\misc3\wf\
 CA_Modules_Functions in ca\modules\functions\
 CAStructuresBarn_W in ca\structures\barn_w\
 CAStructures_Wall in ca\structures\wall\
 CAStructures_Railway in ca\structures\rail\railway\, CATracked in ca\tracked\
 CAWeapons_Saiga12K in ca\weapons\saiga12k\
 CAWheeled2_HMMWV_Ambulance in ca\wheeled2\hmmwv\m997a2_ambulance\
 CAA10 in ca\a10\, CAAir2_MQ9PredatorB in ca\air2\mq9predatorb\
 A_statue in ca\buildings2\a_statue\
 Ind_Mlyn in ca\buildings2\ind_cementworks\ind_mlyn\
 CAData_ParticleEffects in ca\data\particleeffects\, CAMisc2 in ca\misc2\
 CA_HighCommand in ca\modules\hc\, CA_Modules in ca\modules\
 CA_Missions_AmbientCombat in ca\modules\ambient_combat\
 CAStructures_Nav_pier in ca\structures\nav_pier\
 CAStructures_Ruins in ca\structures\ruins\
 CATracked2_us_m270mlrs in ca\tracked2\us_m270mlrs\, CATracked2 in ca\tracked2\
 CAweapons_ksvk in ca\weapons\ksvk\, CAWeapons2_RPG18 in ca\weapons2\rpg18\
 CAWheeled2 in ca\wheeled2\
 CAWheeled2_M1114_Armored in ca\wheeled2\hmmwv\m1114_armored\
 CAWheeled2_TowingTractor in ca\wheeled2\towingtractor\
 Church_01 in ca\buildings2\church_01\, HouseRuins in ca\buildings2\houseruins\
 Ind_Shed_01 in ca\buildings2\ind_shed_01\
 Ind_MalyKomin in ca\buildings2\ind_cementworks\ind_malykomin\
 CAMisc3 in ca\misc3\, CA_HC_Sounds in ca\missions\data\sounds\, CAMusic in ca\music\
 CAStructures_Misc_Powerlines in ca\structures\misc_powerlines\
 CAStructures_Nav in ca\structures\nav\
 CAWater2_fishing_boat in ca\water2\fishing_boat\
 CAWeapons_M252_81mm_Mortar in ca\weapons\m252_81mm_mortar\
 CAWeapons_Kord in ca\weapons\kord\, CAWeapons_Colt1911 in ca\weapons\colt1911\
 CAWheeled3 in ca\wheeled3\, CA_CruiseMissile in ca\air2\cruisemissile\
 CA_Animals2_Goat in ca\animals2\goat\, CABuildings in ca\buildings\
 Ind_Shed_02 in ca\buildings2\ind_shed_02\
 CA_Modules_StratLayer in ca\modules\strat_layer\
 CAStructures_A_CraneCon in ca\structures\a_cranecon\
 CAStructuresHouse_A_Office01 in ca\structures\house\a_office01\
 CATracked2_AAV in ca\tracked2\aav\, CAWater2_smallboat_1 in ca\water2\small_boat\
 CAWeapons_DMR in ca\weapons\dmr\, CAWeapons_AK in ca\weapons\ak\
Mods: CA
Distribution: 1459
Exe version: 1.03.58627
   player Zombie, state CREATED -> CONNECTED
Mission Random_SecOps.Chernarus: Missing 'description.ext::Header'
   player Zombie, state MISSION ASKED -> ROLE ASSIGNED
   player Zombie, state ROLE ASSIGNED -> MISSION RECEIVED
Error in expression <removeAllWeapons _unit>
 Error position: <removeAllWeapons _unit>
 Error removeallweapons: Type String, expected Object
Error in expression <_unit addMagazine "100Rnd_556x45_BetaCMag">
 Error position: <addMagazine "100Rnd_556x45_BetaCMag">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "100Rnd_556x45_BetaCMag">
 Error position: <addMagazine "100Rnd_556x45_BetaCMag">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "100Rnd_556x45_BetaCMag">
 Error position: <addMagazine "100Rnd_556x45_BetaCMag">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "100Rnd_556x45_BetaCMag">
 Error position: <addMagazine "100Rnd_556x45_BetaCMag">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addWeapon "M8_SAW">
 Error position: <addWeapon "M8_SAW">
 Error addweapon: Type String, expected Object
Error in expression <_unit selectWeapon "M8_SAW">
 Error position: <selectWeapon "M8_SAW">
 Error selectweapon: Type String, expected Object
Error in expression <_unit addMagazine "15Rnd_9x19_M9">
 Error position: <addMagazine "15Rnd_9x19_M9">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "15Rnd_9x19_M9">
 Error position: <addMagazine "15Rnd_9x19_M9">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "15Rnd_9x19_M9">
 Error position: <addMagazine "15Rnd_9x19_M9">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "15Rnd_9x19_M9">
 Error position: <addMagazine "15Rnd_9x19_M9">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addWeapon "M9">
 Error position: <addWeapon "M9">
 Error addweapon: Type String, expected Object
Error in expression <_unit addWeapon "Binocular">
 Error position: <addWeapon "Binocular">
 Error addweapon: Type String, expected Object
Error in expression <_unit addWeapon "NVGoggles">
 Error position: <addWeapon "NVGoggles">
 Error addweapon: Type String, expected Object
Error in expression <it select 0, getpos _HALOunit select 1, _HALOunitaltitude]>
 Error position: <_HALOunitaltitude]>
 Error Undefined variable in expression: _halounitaltitude
Error in expression <it select 0, getpos _HALOunit select 1, _HALOunitaltitude]>
 Error position: <_HALOunitaltitude]>
 Error Undefined variable in expression: _halounitaltitude
Error in expression <it select 0, getpos _HALOunit select 1, _HALOunitaltitude]>
 Error position: <_HALOunitaltitude]>
 Error Undefined variable in expression: _halounitaltitude
Error in expression <it select 0, getpos _HALOunit select 1, _HALOunitaltitude]>
 Error position: <_HALOunitaltitude]>
 Error Undefined variable in expression: _halounitaltitude
Error in expression <it select 0, getpos _HALOunit select 1, _HALOunitaltitude]>
 Error position: <_HALOunitaltitude]>
 Error Undefined variable in expression: _halounitaltitude
Error in expression <it select 0, getpos _HALOunit select 1, _HALOunitaltitude]>
 Error position: <_HALOunitaltitude]>
 Error Undefined variable in expression: _halounitaltitude
Error in expression <it select 0, getpos _HALOunit select 1, _HALOunitaltitude]>
 Error position: <_HALOunitaltitude]>
 Error Undefined variable in expression: _halounitaltitude
Error in expression <it select 0, getpos _HALOunit select 1, _HALOunitaltitude]>
 Error position: <_HALOunitaltitude]>
 Error Undefined variable in expression: _halounitaltitude
Error in expression <removeAllWeapons _unit>
 Error position: <removeAllWeapons _unit>
 Error removeallweapons: Type String, expected Object
Error in expression <_unit addMagazine "30Rnd_556x45_Stanag">
 Error position: <addMagazine "30Rnd_556x45_Stanag">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "30Rnd_556x45_Stanag">
 Error position: <addMagazine "30Rnd_556x45_Stanag">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "30Rnd_556x45_Stanag">
 Error position: <addMagazine "30Rnd_556x45_Stanag">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "30Rnd_556x45_Stanag">
 Error position: <addMagazine "30Rnd_556x45_Stanag">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "30Rnd_556x45_Stanag">
 Error position: <addMagazine "30Rnd_556x45_Stanag">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "30Rnd_556x45_Stanag">
 Error position: <addMagazine "30Rnd_556x45_Stanag">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "30Rnd_556x45_Stanag">
 Error position: <addMagazine "30Rnd_556x45_Stanag">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "30Rnd_556x45_Stanag">
 Error position: <addMagazine "30Rnd_556x45_Stanag">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "30Rnd_556x45_Stanag">
 Error position: <addMagazine "30Rnd_556x45_Stanag">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "30Rnd_556x45_Stanag">
 Error position: <addMagazine "30Rnd_556x45_Stanag">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "30Rnd_556x45_Stanag">
 Error position: <addMagazine "30Rnd_556x45_Stanag">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "1Rnd_HE_M203">
 Error position: <addMagazine "1Rnd_HE_M203">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "1Rnd_HE_M203">
 Error position: <addMagazine "1Rnd_HE_M203">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "1Rnd_HE_M203">
 Error position: <addMagazine "1Rnd_HE_M203">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "1Rnd_HE_M203">
 Error position: <addMagazine "1Rnd_HE_M203">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addWeapon "m8_carbinegl">
 Error position: <addWeapon "m8_carbinegl">
 Error addweapon: Type String, expected Object
Error in expression <_unit selectWeapon "m8_carbinegl">
 Error position: <selectWeapon "m8_carbinegl">
 Error selectweapon: Type String, expected Object
Error in expression <_unit addMagazine "LaserBatteries">
 Error position: <addMagazine "LaserBatteries">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addWeapon "LaserDesignator">
 Error position: <addWeapon "LaserDesignator">
 Error addweapon: Type String, expected Object
Error in expression <_unit addMagazine "15Rnd_9x19_M9">
 Error position: <addMagazine "15Rnd_9x19_M9">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "15Rnd_9x19_M9">
 Error position: <addMagazine "15Rnd_9x19_M9">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "15Rnd_9x19_M9">
 Error position: <addMagazine "15Rnd_9x19_M9">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "15Rnd_9x19_M9">
 Error position: <addMagazine "15Rnd_9x19_M9">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addWeapon "M9">
 Error position: <addWeapon "M9">
 Error addweapon: Type String, expected Object
Error in expression <_unit addWeapon "Binocular">
 Error position: <addWeapon "Binocular">
 Error addweapon: Type String, expected Object
Error in expression <removeAllWeapons _unit>
 Error position: <removeAllWeapons _unit>
 Error removeallweapons: Type String, expected Object
Error in expression <_unit addMagazine "30Rnd_556x45_Stanag">
 Error position: <addMagazine "30Rnd_556x45_Stanag">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "30Rnd_556x45_Stanag">
 Error position: <addMagazine "30Rnd_556x45_Stanag">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "30Rnd_556x45_Stanag">
 Error position: <addMagazine "30Rnd_556x45_Stanag">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "30Rnd_556x45_Stanag">
 Error position: <addMagazine "30Rnd_556x45_Stanag">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "30Rnd_556x45_Stanag">
 Error position: <addMagazine "30Rnd_556x45_Stanag">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "30Rnd_556x45_Stanag">
 Error position: <addMagazine "30Rnd_556x45_Stanag">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "30Rnd_556x45_Stanag">
 Error position: <addMagazine "30Rnd_556x45_Stanag">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "30Rnd_556x45_Stanag">
 Error position: <addMagazine "30Rnd_556x45_Stanag">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "30Rnd_556x45_Stanag">
 Error position: <addMagazine "30Rnd_556x45_Stanag">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addWeapon "M8_carbine">
 Error position: <addWeapon "M8_carbine">
 Error addweapon: Type String, expected Object
Error in expression <_unit selectWeapon "M8_carbine">
 Error position: <selectWeapon "M8_carbine">
 Error selectweapon: Type String, expected Object
Error in expression <_unit addMagazine "15Rnd_9x19_M9">
 Error position: <addMagazine "15Rnd_9x19_M9">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "15Rnd_9x19_M9">
 Error position: <addMagazine "15Rnd_9x19_M9">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "15Rnd_9x19_M9">
 Error position: <addMagazine "15Rnd_9x19_M9">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "15Rnd_9x19_M9">
 Error position: <addMagazine "15Rnd_9x19_M9">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addWeapon "M9">
 Error position: <addWeapon "M9">
 Error addweapon: Type String, expected Object
Error in expression <_unit addMagazine "HandGrenade">
 Error position: <addMagazine "HandGrenade">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "HandGrenade">
 Error position: <addMagazine "HandGrenade">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "HandGrenade">
 Error position: <addMagazine "HandGrenade">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addWeapon "Binocular">
 Error position: <addWeapon "Binocular">
 Error addweapon: Type String, expected Object
Error in expression <_unit addWeapon "NVGoggles">
 Error position: <addWeapon "NVGoggles">
 Error addweapon: Type String, expected Object
Error in expression <removeAllWeapons _unit>
 Error position: <removeAllWeapons _unit>
 Error removeallweapons: Type String, expected Object
Error in expression <_unit addMagazine "30Rnd_556x45_Stanag">
 Error position: <addMagazine "30Rnd_556x45_Stanag">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "30Rnd_556x45_Stanag">
 Error position: <addMagazine "30Rnd_556x45_Stanag">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "30Rnd_556x45_Stanag">
 Error position: <addMagazine "30Rnd_556x45_Stanag">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "30Rnd_556x45_Stanag">
 Error position: <addMagazine "30Rnd_556x45_Stanag">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addWeapon "M8_carbine">
 Error position: <addWeapon "M8_carbine">
 Error addweapon: Type String, expected Object
Error in expression <_unit selectWeapon "M8_carbine">
 Error position: <selectWeapon "M8_carbine">
 Error selectweapon: Type String, expected Object
Error in expression <_unit addMagazine "SMAW_HEAA">
 Error position: <addMagazine "SMAW_HEAA">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "SMAW_HEAA">
 Error position: <addMagazine "SMAW_HEAA">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "SMAW_HEAA">
 Error position: <addMagazine "SMAW_HEAA">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "SMAW_HEDP">
 Error position: <addMagazine "SMAW_HEDP">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addWeapon "SMAW">
 Error position: <addWeapon "SMAW">
 Error addweapon: Type String, expected Object
Error in expression <_unit addMagazine "15Rnd_9x19_M9">
 Error position: <addMagazine "15Rnd_9x19_M9">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "15Rnd_9x19_M9">
 Error position: <addMagazine "15Rnd_9x19_M9">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "15Rnd_9x19_M9">
 Error position: <addMagazine "15Rnd_9x19_M9">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "15Rnd_9x19_M9">
 Error position: <addMagazine "15Rnd_9x19_M9">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addWeapon "M9">
 Error position: <addWeapon "M9">
 Error addweapon: Type String, expected Object
Error in expression <_unit addWeapon "Binocular">
 Error position: <addWeapon "Binocular">
 Error addweapon: Type String, expected Object
Error in expression <_unit addWeapon "NVGoggles">
 Error position: <addWeapon "NVGoggles">
 Error addweapon: Type String, expected Object
Error in expression <removeAllWeapons _unit>
 Error position: <removeAllWeapons _unit>
 Error removeallweapons: Type String, expected Object
Error in expression <_unit addMagazine "30Rnd_556x45_Stanag">
 Error position: <addMagazine "30Rnd_556x45_Stanag">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "30Rnd_556x45_Stanag">
 Error position: <addMagazine "30Rnd_556x45_Stanag">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "30Rnd_556x45_Stanag">
 Error position: <addMagazine "30Rnd_556x45_Stanag">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "30Rnd_556x45_Stanag">
 Error position: <addMagazine "30Rnd_556x45_Stanag">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "30Rnd_556x45_Stanag">
 Error position: <addMagazine "30Rnd_556x45_Stanag">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "30Rnd_556x45_Stanag">
 Error position: <addMagazine "30Rnd_556x45_Stanag">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addWeapon "M8_compact">
 Error position: <addWeapon "M8_compact">
 Error addweapon: Type String, expected Object
Error in expression <_unit selectWeapon "M8_compact">
 Error position: <selectWeapon "M8_compact">
 Error selectweapon: Type String, expected Object
Error in expression <_unit addMagazine "15Rnd_9x19_M9">
 Error position: <addMagazine "15Rnd_9x19_M9">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "15Rnd_9x19_M9">
 Error position: <addMagazine "15Rnd_9x19_M9">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "15Rnd_9x19_M9">
 Error position: <addMagazine "15Rnd_9x19_M9">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "15Rnd_9x19_M9">
 Error position: <addMagazine "15Rnd_9x19_M9">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addWeapon "M9">
 Error position: <addWeapon "M9">
 Error addweapon: Type String, expected Object
Error in expression <_unit addMagazine "SmokeShell">
 Error position: <addMagazine "SmokeShell">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "SmokeShell">
 Error position: <addMagazine "SmokeShell">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "SmokeShell">
 Error position: <addMagazine "SmokeShell">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "SmokeShell">
 Error position: <addMagazine "SmokeShell">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "SmokeShell">
 Error position: <addMagazine "SmokeShell">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "SmokeShell">
 Error position: <addMagazine "SmokeShell">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addWeapon "Binocular">
 Error position: <addWeapon "Binocular">
 Error addweapon: Type String, expected Object
Error in expression <_unit addWeapon "NVGoggles">
 Error position: <addWeapon "NVGoggles">
 Error addweapon: Type String, expected Object
Error in expression <removeAllWeapons _unit>
 Error position: <removeAllWeapons _unit>
 Error removeallweapons: Type String, expected Object
Error in expression <_unit addMagazine "30Rnd_556x45_Stanag">
 Error position: <addMagazine "30Rnd_556x45_Stanag">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "30Rnd_556x45_Stanag">
 Error position: <addMagazine "30Rnd_556x45_Stanag">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "30Rnd_556x45_Stanag">
 Error position: <addMagazine "30Rnd_556x45_Stanag">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "30Rnd_556x45_Stanag">
 Error position: <addMagazine "30Rnd_556x45_Stanag">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "30Rnd_556x45_Stanag">
 Error position: <addMagazine "30Rnd_556x45_Stanag">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "30Rnd_556x45_Stanag">
 Error position: <addMagazine "30Rnd_556x45_Stanag">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "30Rnd_556x45_Stanag">
 Error position: <addMagazine "30Rnd_556x45_Stanag">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "30Rnd_556x45_Stanag">
 Error position: <addMagazine "30Rnd_556x45_Stanag">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "30Rnd_556x45_Stanag">
 Error position: <addMagazine "30Rnd_556x45_Stanag">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "30Rnd_556x45_Stanag">
 Error position: <addMagazine "30Rnd_556x45_Stanag">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "30Rnd_556x45_Stanag">
 Error position: <addMagazine "30Rnd_556x45_Stanag">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "30Rnd_556x45_Stanag">
 Error position: <addMagazine "30Rnd_556x45_Stanag">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "1Rnd_HE_M203">
 Error position: <addMagazine "1Rnd_HE_M203">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "1Rnd_HE_M203">
 Error position: <addMagazine "1Rnd_HE_M203">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "1Rnd_HE_M203">
 Error position: <addMagazine "1Rnd_HE_M203">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "1Rnd_HE_M203">
 Error position: <addMagazine "1Rnd_HE_M203">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "1Rnd_HE_M203">
 Error position: <addMagazine "1Rnd_HE_M203">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "1Rnd_HE_M203">
 Error position: <addMagazine "1Rnd_HE_M203">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "1Rnd_HE_M203">
 Error position: <addMagazine "1Rnd_HE_M203">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addWeapon "M8_carbineGL">
 Error position: <addWeapon "M8_carbineGL">
 Error addweapon: Type String, expected Object
Error in expression <_unit selectWeapon "M8_carbineGL">
 Error position: <selectWeapon "M8_carbineGL">
 Error selectweapon: Type String, expected Object
Error in expression <_unit addMagazine "15Rnd_9x19_M9">
 Error position: <addMagazine "15Rnd_9x19_M9">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addWeapon "M9">
 Error position: <addWeapon "M9">
 Error addweapon: Type String, expected Object
Error in expression <_unit addWeapon "Binocular">
 Error position: <addWeapon "Binocular">
 Error addweapon: Type String, expected Object
Error in expression <_unit addWeapon "NVGoggles">
 Error position: <addWeapon "NVGoggles">
 Error addweapon: Type String, expected Object
Error in expression <removeAllWeapons _unit>
 Error position: <removeAllWeapons _unit>
 Error removeallweapons: Type String, expected Object
Error in expression <_unit addMagazine "20Rnd_762x51_DMR">
 Error position: <addMagazine "20Rnd_762x51_DMR">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "20Rnd_762x51_DMR">
 Error position: <addMagazine "20Rnd_762x51_DMR">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "20Rnd_762x51_DMR">
 Error position: <addMagazine "20Rnd_762x51_DMR">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "20Rnd_762x51_DMR">
 Error position: <addMagazine "20Rnd_762x51_DMR">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "20Rnd_762x51_DMR">
 Error position: <addMagazine "20Rnd_762x51_DMR">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "20Rnd_762x51_DMR">
 Error position: <addMagazine "20Rnd_762x51_DMR">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "20Rnd_762x51_DMR">
 Error position: <addMagazine "20Rnd_762x51_DMR">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "20Rnd_762x51_DMR">
 Error position: <addMagazine "20Rnd_762x51_DMR">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "20Rnd_762x51_DMR">
 Error position: <addMagazine "20Rnd_762x51_DMR">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "20Rnd_762x51_DMR">
 Error position: <addMagazine "20Rnd_762x51_DMR">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "20Rnd_762x51_DMR">
 Error position: <addMagazine "20Rnd_762x51_DMR">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "20Rnd_762x51_DMR">
 Error position: <addMagazine "20Rnd_762x51_DMR">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addWeapon "DMR">
 Error position: <addWeapon "DMR">
 Error addweapon: Type String, expected Object
Error in expression <_unit selectWeapon "DMR">
 Error position: <selectWeapon "DMR">
 Error selectweapon: Type String, expected Object
Error in expression <_unit addMagazine "15Rnd_9x19_M9">
 Error position: <addMagazine "15Rnd_9x19_M9">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "15Rnd_9x19_M9">
 Error position: <addMagazine "15Rnd_9x19_M9">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "15Rnd_9x19_M9">
 Error position: <addMagazine "15Rnd_9x19_M9">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "15Rnd_9x19_M9">
 Error position: <addMagazine "15Rnd_9x19_M9">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addWeapon "M9">
 Error position: <addWeapon "M9">
 Error addweapon: Type String, expected Object
Error in expression <_unit addWeapon "Binocular">
 Error position: <addWeapon "Binocular">
 Error addweapon: Type String, expected Object
Error in expression <_unit addWeapon "NVGoggles">
 Error position: <addWeapon "NVGoggles">
 Error addweapon: Type String, expected Object
Error in expression <removeAllWeapons _unit>
 Error position: <removeAllWeapons _unit>
 Error removeallweapons: Type String, expected Object
Error in expression <_unit addMagazine "30Rnd_556x45_Stanag">
 Error position: <addMagazine "30Rnd_556x45_Stanag">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "30Rnd_556x45_Stanag">
 Error position: <addMagazine "30Rnd_556x45_Stanag">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "30Rnd_556x45_Stanag">
 Error position: <addMagazine "30Rnd_556x45_Stanag">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "30Rnd_556x45_Stanag">
 Error position: <addMagazine "30Rnd_556x45_Stanag">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addWeapon "M8_carbine">
 Error position: <addWeapon "M8_carbine">
 Error addweapon: Type String, expected Object
Error in expression <_unit selectWeapon "M8_carbine">
 Error position: <selectWeapon "M8_carbine">
 Error selectweapon: Type String, expected Object
Error in expression <_unit addMagazine "15Rnd_9x19_M9">
 Error position: <addMagazine "15Rnd_9x19_M9">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "15Rnd_9x19_M9">
 Error position: <addMagazine "15Rnd_9x19_M9">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "15Rnd_9x19_M9">
 Error position: <addMagazine "15Rnd_9x19_M9">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "15Rnd_9x19_M9">
 Error position: <addMagazine "15Rnd_9x19_M9">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addWeapon "M9">
 Error position: <addWeapon "M9">
 Error addweapon: Type String, expected Object
Error in expression <_unit addMagazine "Mine">
 Error position: <addMagazine "Mine">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "Mine">
 Error position: <addMagazine "Mine">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "PipeBomb">
 Error position: <addMagazine "PipeBomb">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addMagazine "PipeBomb">
 Error position: <addMagazine "PipeBomb">
 Error addmagazine: Type String, expected Object
Error in expression <_unit addWeapon "Binocular">
 Error position: <addWeapon "Binocular">
 Error addweapon: Type String, expected Object
Error in expression <_unit addWeapon "NVGoggles">
 Error position: <addWeapon "NVGoggles">
 Error addweapon: Type String, expected Object
Error in expression <it select 0, getpos _HALOunit select 1, _HALOunitaltitude]>
 Error position: <_HALOunitaltitude]>
 Error Undefined variable in expression: _halounitaltitude
Creating debriefing

Share this post


Link to post
Share on other sites

You could always try executing them from the init.sqs... But since I've never crossed syntaxes before I really don't know what the problem is with using the init.sqf (or if it's possible or not).

Share this post


Link to post
Share on other sites
You could always try executing them from the init.sqs... But since I've never crossed syntaxes before I really don't know what the problem is with using the init.sqf (or if it's possible or not).

I was thinking the same thing, but hoping to getting the sqf to work but it may come to using init.sqs

Share this post


Link to post
Share on other sites

Or another wild thought is (are you ready for this?) to convert all those scripts into a much cleaner, SQF structured script.

Share this post


Link to post
Share on other sites

Personally I'd make one SQF script that takes 2 arguments, unitName and unitLoadoutCode. Then have part of the SQF script strip all weapons/items and add in the common items everyone gets, then use a case statement to finish the outfitting.

like:

[u1,"teamLead"] execVM unitOutfit.sqf;

Share this post


Link to post
Share on other sites
Or another wild thought is (are you ready for this?) to convert all those scripts into a much cleaner, SQF structured script.

Not against that either but still learning sqf syntax. Armaedit from Chris Henderson has wonderful wizards but they do make sqs's

Share this post


Link to post
Share on other sites

Well what you've got already can be converted into SQF simply by adding semicolons to the end of each line and removing the Exit.

Share this post


Link to post
Share on other sites

ok, thanks, I will give it a shot

---------- Post added at 03:53 PM ---------- Previous post was at 02:10 PM ----------

~sigh~ doesn't seem to want to work. I even tried using an init.sqs and it didn't like that either. Right now I can execute the loadout scripts from a trigger. I wanted it to exec from the init so the before game briefing would show the loadout.

Share this post


Link to post
Share on other sites
ok, thanks, I will give it a shot

---------- Post added at 03:53 PM ---------- Previous post was at 02:10 PM ----------

~sigh~ doesn't seem to want to work. I even tried using an init.sqs and it didn't like that either. Right now I can execute the loadout scripts from a trigger. I wanted it to exec from the init so the before game briefing would show the loadout.

Well now, if you want them to show up in the briefing loadout page you're going to have to call them as functions. Make them .sqf (will not work with .sqs), and then call them from an init field via call. That's the only way to guaruntee they will execute before the briefing.

Share this post


Link to post
Share on other sites

so in the init.sqf put

[a1] call "unit_rifleman.sqf";

[a2] call "unit_engineer.sqf";

etc?

Share this post


Link to post
Share on other sites
[a1] call compile preprocessFileLineNumbers "unit_rifleman.sqf";
[a2] call compile preprocessFileLineNumbers "unit_engineer.sqf";

Share this post


Link to post
Share on other sites

OK Big Dawg KS we are making progress here. This is my init.sqf:

//////////////////////////////////////////////////////////////////
// Function file for Armed Assault
// Created by: {USI}_Studios/{USI}_Zombie
//////////////////////////////////////////////////////////////////

_null = [] execVM "briefing.sqf";
[u1] call compile preprocessFileLineNumbers "unit_teamlead.sqf";
[u2] call compile preprocessFileLineNumbers "unit_rifleman.sqf";
[u3] call compile preprocessFileLineNumbers "unit_smaw.sqf";
[u4] call compile preprocessFileLineNumbers "unit_corpsman.sqf";
[u5] call compile preprocessFileLineNumbers "unit_grenadier.sqf";
[u6] call compile preprocessFileLineNumbers "unit_sniper.sqf";
[u7] call compile preprocessFileLineNumbers "unit_engineer.sqf";
[u8] call compile preprocessFileLineNumbers "unit_machinegunner.sqf";

now the problem is only unit u1 gets the custom loadout, none of the other units do, but there are no errors reported in the arma2.rpt

here is my script unit_teamlead.sqf and the rest of the scripts match this one except the weapons and mags

// Get the unit parameter given
_unit = _this select 0;

// Strip the units current gear
removeAllWeapons _unit;

// Add the new gear to the unit
_unit addMagazine "30Rnd_556x45_Stanag";
_unit addMagazine "30Rnd_556x45_Stanag";
_unit addMagazine "30Rnd_556x45_Stanag";
_unit addMagazine "30Rnd_556x45_Stanag";
_unit addMagazine "30Rnd_556x45_Stanag";
_unit addMagazine "30Rnd_556x45_Stanag";
_unit addMagazine "30Rnd_556x45_Stanag";
_unit addMagazine "30Rnd_556x45_Stanag";
_unit addMagazine "30Rnd_556x45_Stanag";
_unit addMagazine "30Rnd_556x45_Stanag";
_unit addMagazine "30Rnd_556x45_Stanag";
_unit addMagazine "1Rnd_HE_M203";
_unit addMagazine "1Rnd_HE_M203";
_unit addMagazine "1Rnd_HE_M203";
_unit addMagazine "1Rnd_HE_M203";
_unit addWeapon "m8_carbinegl";
_unit selectWeapon "m8_carbinegl";
_unit addMagazine "LaserBatteries";
_unit addWeapon "LaserDesignator";
_unit addMagazine "15Rnd_9x19_M9";
_unit addMagazine "15Rnd_9x19_M9";
_unit addMagazine "15Rnd_9x19_M9";
_unit addMagazine "15Rnd_9x19_M9";
_unit addWeapon "M9";
_unit addWeapon "Binocular";

unit numbers u1,u2,u3 etc verified in the editor

all scripts btw created with Chris Hendersons Arma edit and the loadout scripts modified by hand with that same tool

Edited by {USI}_Zombie
Giving Chenderman credit

Share this post


Link to post
Share on other sites

ok, I still can't get the sqs's to work from inside init.sqf, modifying the sqs's to sqf's hasn't worked either.

Now I need to go the opposite direction to update an old mission. Since the briefing is now an sqf, I need to call it but I have an init.sqs that can't be modded. So how do I call the briefing.sqf from inside the init.sqs? I have tried _null = execvm "briefing.sqf"......execvm "briefing.sqf"......[] execvm "briefing.sqf" all to no avail. I even tried to run an init.sqs and an init.sqf which doesn't work either.

Ideas?

Share this post


Link to post
Share on other sites

How do you have an old ArmA 2 mission with an init.sqs that can't be modded?

Share this post


Link to post
Share on other sites
ok, I still can't get the sqs's to work from inside init.sqf, modifying the sqs's to sqf's hasn't worked either.

Now I need to go the opposite direction to update an old mission. Since the briefing is now an sqf, I need to call it but I have an init.sqs that can't be modded. So how do I call the briefing.sqf from inside the init.sqs? I have tried _null = execvm "briefing.sqf"......execvm "briefing.sqf"......[] execvm "briefing.sqf" all to no avail. I even tried to run an init.sqs and an init.sqf which doesn't work either.

Ideas?

If you don't got too many files, you are probably just better off posting all your files here because I created the init.sqf + loadout sqf files and they worked just fine. The problem you are experiencing probably has nothing to do with whatever you are trying to do. Also, your original sqs files to change the loadout, they work fine. At least, the programming is fine. What you were calling with the _this command was probably faulty.

Edited by BlackAlpha

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×