Forum Jump :

Author Message


Posts: 48
Rank:


Level: Member

Country: de
Location: K-Town
Occupation: Medic
Age: 38
In-game name: Officer D

 
#1 Posted at 2015-11-06 08:18        
     
Hi scripting wizards I hope you can help me out on this one.

So, I setup a parachute ammo box drop and everything works fine. The only issue I have now is that I can't move any gear out of that box into the players inventory. Usually I don't ask anything around here and try to solve the problems by myself. But going through all the google searches and the community wiki, I could not figure this one out.

here's the script:

init.sqf :
if (isServer) then {
[] execVM "scripts\supplydrop.sqf";
};

supplydrop.sqf:
while {true} do {
sleep 30;

waitUntil{!(isNil "BIS_MPF_InitDone")};    
[nil,nil,rPLAYSOUND,"c130"] call RE;

sleep 8;

chute = createVehicle ["ParachuteBigWest", getMarkerPos "LootSpawn1", [], 500, "FLY"];
chute setVehicleInit "chute=this";
processInitCommands;

chute setPos [(getpos this select 0), (getPos this select 1), (getPos this select 2)+200];

LootBox = "USVehicleBox" createVehicle (getMarkerPos "LootSpawn2");

clearMagazineCargo LootBox;
clearWeaponCargo LootBox;
clearBackpackCargoGlobal LootBox;

// Rifles

LootBox addWeaponCargo ["M14_EP1", 1];
LootBox addWeaponCargo ["m16a4_acg", 1];
LootBox addWeaponCargo ["M4A1_AIM_SD_camo", 1];
LootBox addWeaponCargo ["M4A3_CCO_EP1", 1];
LootBox addWeaponCargo ["m8_holo_sd", 1];
LootBox addWeaponCargo ["m8_sharpshooter", 1];
LootBox addWeaponCargo ["SCAR_L_CQC_CCO_SD", 1];
LootBox addWeaponCargo ["SCAR_L_CQC", 1];
LootBox addWeaponCargo ["SCAR_H_LNG_Sniper", 1];
LootBox addWeaponCargo ["SCAR_H_LNG_Sniper_SD", 1];

// Rifle Ammo

LootBox addMagazineCargo ["20Rnd_762x51_B_SCAR", 20];
LootBox addMagazineCargo ["20Rnd_762x51_SB_SCAR", 20];
LootBox addMagazineCargo ["30Rnd_9x19_MP5", 20];
LootBox addMagazineCargo ["30Rnd_9x19_MP5SD", 20];
LootBox addMagazineCargo ["30Rnd_556x45_G36", 20];
LootBox addMagazineCargo ["30Rnd_556x45_G36SD", 20];
LootBox addMagazineCargo ["30Rnd_556x45_Stanag", 20];
LootBox addMagazineCargo ["30Rnd_556x45_StanagSD", 20];

// Shotguns

LootBox addWeaponCargo ["M1014", 1];
LootBox addWeaponCargo ["AA12_PMC", 1];

//Shotgun Ammo

LootBox addMagazineCargo ["8Rnd_B_Beneli_Pellets", 20];
LootBox addMagazineCargo ["20Rnd_B_AA12_Pellets", 20];

// Sniper Rifles

LootBox addWeaponCargo ["m107", 1];
LootBox addWeaponCargo ["BAF_AS50_scoped", 1];
LootBox addWeaponCargo ["BAF_LRR_scoped_W", 1];
LootBox addWeaponCargo ["BAF_LRR_scoped", 1];
LootBox addWeaponCargo ["M110_NVG_EP1", 1];
LootBox addWeaponCargo ["DMR", 1];
LootBox addWeaponCargo ["M24", 1];
LootBox addWeaponCargo ["M24_des_EP1", 1];
LootBox addWeaponCargo ["M40A3", 1];

// Sniper Ammo

LootBox addMagazineCargo ["20Rnd_762x51_DMR", 20];
LootBox addMagazineCargo ["5Rnd_762x51_M24", 20];
LootBox addMagazineCargo ["10Rnd_127x99_m107", 20];
LootBox addMagazineCargo ["5Rnd_127x99_as50", 20];
LootBox addMagazineCargo ["5Rnd_86x70_L115A1", 20];

// Machineguns

LootBox addWeaponCargo ["m240_scoped_EP1", 1];
LootBox addWeaponCargo ["Mk_48_DES_EP1", 1];
LootBox addWeaponCargo ["M249_EP1", 1];
LootBox addWeaponCargo ["M249_m145_EP1", 1];
LootBox addWeaponCargo ["M60A4_EP1", 1];

// LMG Ammo

LootBox addMagazineCargo ["100Rnd_762x51_M240", 20];
LootBox addMagazineCargo ["200Rnd_556x45_M249", 20];
LootBox addMagazineCargo ["100Rnd_556x45_BetaCMag", 20];

// Sidearm

LootBox addWeaponCargo ["M9", 1];
LootBox addWeaponCargo ["M9SD",1];
LootBox addWeaponCargo ["Colt1911", 1];
LootBox addWeaponCargo ["glock17_EP1", 1];

// Sidearm Ammo

LootBox addMagazineCargo ["7Rnd_45ACP_1911", 20];
LootBox addMagazineCargo ["15Rnd_9x19_M9", 20];
LootBox addMagazineCargo ["15Rnd_9x19_M9SD",20];
LootBox addMagazineCargo ["17Rnd_9x19_glock17", 20];

// AT & AA

LootBox addWeaponCargo ["MAAWS", 1];
LootBox addWeaponCargo ["SMAW",1];
LootBox addWeaponCargo ["BAF_NLAW_Launcher", 1];
LootBox addWeaponCargo ["Javelin", 1];
LootBox addWeaponCargo ["Stinger", 1];
LootBox addWeaponCargo ["M136", 1];

// AT & AA Ammo

LootBox addMagazineCargo ["MAAWS_HEAT", 20];
LootBox addMagazineCargo ["MAAWS_HEDP", 20];
LootBox addMagazineCargo ["SMAW_HEAA",20];
LootBox addMagazineCargo ["SMAW_HEDP",20];
LootBox addMagazineCargo ["NLAW", 20];
LootBox addMagazineCargo ["Javelin", 20];
LootBox addMagazineCargo ["stinger", 20];
LootBox addMagazineCargo ["M136", 20];

// Items

LootBox addWeaponCargo ["Binocular", 10];
LootBox addWeaponCargo ["Binocular_Vector", 10];
LootBox addWeaponCargo ["NVGoggles", 10];
LootBox addWeaponCargo ["ItemGPS", 10];
LootBox addWeaponCargo ["ItemMAP", 10];
LootBox addWeaponCargo ["ItemCompass", 10];
LootBox addWeaponCargo ["ItemWatch", 10];
LootBox addWeaponCargo ["LaserDesignator", 10];

// Other

LootBox addMagazineCargo ["IRStrobe", 10];
LootBox addMagazineCargo ["LaserBatteries", 10];
LootBox addMagazineCargo ["HandGrenade_West", 20];
LootBox addMagazineCargo ["PipeBomb", 20];
LootBox addMagazineCargo ["SmokeShell",20];
LootBox addMagazineCargo ["SmokeShellBlue",20];
LootBox addMagazineCargo ["SmokeShellGreen",20];
LootBox addMagazineCargo ["SmokeShellOrange",20];
LootBox addMagazineCargo ["SmokeShellPurple",20];
LootBox addMagazineCargo ["SmokeShellRed",20];
LootBox addMagazineCargo ["SmokeShellYellow",20];
LootBox addMagazineCargo ["Mine", 20];

LootBox attachto [chute, [0, 0, +1.5]];
LootBox allowDamage false;
chute allowDamage false;

sleep 4;

waitUntil{!(isNil "BIS_MPF_InitDone")};
[nil,nil,rHINT,"Loot Box Drop! Christmas is comming early this year. But be quick, the loot box will despawn in 10 minuets."] call RE;

waitUntil {((getPos LootBox) select 2) < 0.5};

detach LootBox;

LootBox setpos [(getpos LootBox) select 0, (getpos LootBox) select 1, 0];

chute setPos [(getpos LootBox select 0)-2, (getPos LootBox select 1)-2, (getPos LootBox select 2) -2];

LootBox addAction ['<t color="#FF0000">' + "Take Medkits" + '</t>',"medkits\take_medkits.sqf",nil,1.4,true,true,"","_this getVariable 'CLY_healings'>=0 and _this getVariable 'CLY_healings'<3"];

sleep 10;

_smoke="SmokeShellGreen" createVehicle getPos LootBox;

sleep 590;

deleteVehicle LootBox;
deleteVehicle chute;

sleep 600;

};

Any help would be appreciated.


Author Message


Posts: 48
Rank:


Level: Member

Country: de
Location: K-Town
Occupation: Medic
Age: 38
In-game name: Officer D

 
#2 Posted at 2015-11-13 08:20        
     
bump! Nobody have an idea why this isn't working on my dedicated server?


Advertisement


Author Message


Posts: 1189
Rank:


Level: Member

Country: tr
Location:
Occupation: Computer Science student
Age: 23
In-game name: Wak

 
#3 Posted at 2015-11-13 10:37        
     
Use addWeaponCargoGlobal and addMagazineCargoGlobal?

Sometimes I like to think as I started the whole "earplugs" thing.

W0lle: The only advice I can give you is: Do not try to understand BI. You will not succeed and it only makes your brain go boom. I would even go so far and say that not even they understand their own actions :-D.

#define getDamage getDammage

Author Message


Posts: 48
Rank:


Level: Member

Country: de
Location: K-Town
Occupation: Medic
Age: 38
In-game name: Officer D

 
#4 Posted at 2015-11-13 16:10        
     
Nah, I already tried those. It doesn't make a difference. I think it has somthing to do with the fact that the box is beeing spawned in. Maybe... idk :/


Author Message


Posts: 1589
Rank:


Level: Member

Country: pf
Location: Tahiti
Occupation: too many Arma
Age: 60
In-game name: Kobayashi Maru

 
#5 Posted at 2015-11-14 04:17        
     
addAction doesn't seem to work on dedi servers.
See description
The same box on a hosted server will work, even if spawned.

This post was edited by Pierre MGI (2015-11-14 04:28, ago)

PLEASE CONTACT ME ON BI FORUMS FOR ANY SCRIPT / MOD QUESTION. TKS

Author Message


Posts: 48
Rank:


Level: Member

Country: de
Location: K-Town
Occupation: Medic
Age: 38
In-game name: Officer D

 
#6 Posted at 2015-11-14 18:05        
     
Strange, since the addAction did seem work on my dedi server. So you think it's causing the issue with the not beeing able to move gear from the box to my inventory? I'll give it a go and report back asap.

Edit:

Still doesn't let me move gear out of the box. This is the current script setup.

init.sqf:
if (isServer) then {
execVM "scripts\supplydrop.sqf";

};

supplydrop.sqf:
while {true} do {
sleep 30;

waitUntil{!(isNil "BIS_MPF_InitDone")};    
[nil,nil,rPLAYSOUND,"c130"] call RE;

sleep 8;

chute = createVehicle ["ParachuteBigWest", getMarkerPos "LootSpawn1", [], 500, "FLY"];
chute setVehicleInit "chute=this";
processInitCommands;

chute setPos [(getpos this select 0), (getPos this select 1), (getPos this select 2)+200];

LootBox = "USVehicleBox" createVehicle (getMarkerPos "LootSpawn2");

LootBox attachto [chute, [0, 0, +1.5]];
LootBox allowDamage false;
chute allowDamage false;

sleep 4;

waitUntil{!(isNil "BIS_MPF_InitDone")};
[nil,nil,rHINT,"Loot Box Drop! Christmas is comming early this year. But be quick, the loot box will despawn in 10 minuets."] call RE;

waitUntil {((getPos LootBox) select 2) < 0.5};

detach LootBox;

LootBox setpos [(getpos LootBox) select 0, (getpos LootBox) select 1, 0];

chute setPos [(getpos LootBox select 0)-2, (getPos LootBox select 1)-2, (getPos LootBox select 2) -2];

clearMagazineCargo LootBox;
clearWeaponCargo LootBox;
clearBackpackCargoGlobal LootBox;

// Rifles

LootBox addWeaponCargoGlobal ["M14_EP1", 1];
LootBox addWeaponCargoGlobal ["m16a4_acg", 1];
LootBox addWeaponCargoGlobal ["M4A1_AIM_SD_camo", 1];
LootBox addWeaponCargoGlobal ["M4A3_CCO_EP1", 1];
LootBox addWeaponCargoGlobal ["m8_holo_sd", 1];
LootBox addWeaponCargoGlobal ["m8_sharpshooter", 1];
LootBox addWeaponCargoGlobal ["SCAR_L_CQC_CCO_SD", 1];
LootBox addWeaponCargoGlobal ["SCAR_L_CQC", 1];
LootBox addWeaponCargoGlobal ["SCAR_H_LNG_Sniper", 1];
LootBox addWeaponCargoGlobal ["SCAR_H_LNG_Sniper_SD", 1];

// Rifle Ammo

LootBox addMagazineCargoGlobal ["20Rnd_762x51_B_SCAR", 20];
LootBox addMagazineCargoGlobal ["20Rnd_762x51_SB_SCAR", 20];
LootBox addMagazineCargoGlobal ["30Rnd_9x19_MP5", 20];
LootBox addMagazineCargoGlobal ["30Rnd_9x19_MP5SD", 20];
LootBox addMagazineCargoGlobal ["30Rnd_556x45_G36", 20];
LootBox addMagazineCargoGlobal ["30Rnd_556x45_G36SD", 20];
LootBox addMagazineCargoGlobal ["30Rnd_556x45_Stanag", 20];
LootBox addMagazineCargoGlobal ["30Rnd_556x45_StanagSD", 20];

// Shotguns

LootBox addWeaponCargoGlobal ["M1014", 1];
LootBox addWeaponCargoGlobal ["AA12_PMC", 1];

//Shotgun Ammo

LootBox addMagazineCargoGlobal ["8Rnd_B_Beneli_Pellets", 20];
LootBox addMagazineCargoGlobal ["20Rnd_B_AA12_Pellets", 20];

// Sniper Rifles

LootBox addWeaponCargoGlobal ["m107", 1];
LootBox addWeaponCargoGlobal ["BAF_AS50_scoped", 1];
LootBox addWeaponCargoGlobal ["BAF_LRR_scoped_W", 1];
LootBox addWeaponCargoGlobal ["BAF_LRR_scoped", 1];
LootBox addWeaponCargoGlobal ["M110_NVG_EP1", 1];
LootBox addWeaponCargoGlobal ["DMR", 1];
LootBox addWeaponCargoGlobal ["M24", 1];
LootBox addWeaponCargoGlobal ["M24_des_EP1", 1];
LootBox addWeaponCargoGlobal ["M40A3", 1];

// Sniper Ammo

LootBox addMagazineCargoGlobal ["20Rnd_762x51_DMR", 20];
LootBox addMagazineCargoGlobal ["5Rnd_762x51_M24", 20];
LootBox addMagazineCargoGlobal ["10Rnd_127x99_m107", 20];
LootBox addMagazineCargoGlobal ["5Rnd_127x99_as50", 20];
LootBox addMagazineCargoGlobal ["5Rnd_86x70_L115A1", 20];

// Machineguns

LootBox addWeaponCargoGlobal ["m240_scoped_EP1", 1];
LootBox addWeaponCargoGlobal ["Mk_48_DES_EP1", 1];
LootBox addWeaponCargoGlobal ["M249_EP1", 1];
LootBox addWeaponCargoGlobal ["M249_m145_EP1", 1];
LootBox addWeaponCargoGlobal ["M60A4_EP1", 1];

// LMG Ammo

LootBox addMagazineCargoGlobal ["100Rnd_762x51_M240", 20];
LootBox addMagazineCargoGlobal ["200Rnd_556x45_M249", 20];
LootBox addMagazineCargoGlobal ["100Rnd_556x45_BetaCMag", 20];

// Sidearm

LootBox addWeaponCargoGlobal ["M9", 1];
LootBox addWeaponCargoGlobal ["M9SD",1];
LootBox addWeaponCargoGlobal ["Colt1911", 1];
LootBox addWeaponCargoGlobal ["glock17_EP1", 1];

// Sidearm Ammo

LootBox addMagazineCargoGlobal ["7Rnd_45ACP_1911", 20];
LootBox addMagazineCargoGlobal ["15Rnd_9x19_M9", 20];
LootBox addMagazineCargoGlobal ["15Rnd_9x19_M9SD",20];
LootBox addMagazineCargoGlobal ["17Rnd_9x19_glock17", 20];

// AT & AA

LootBox addWeaponCargoGlobal ["MAAWS", 1];
LootBox addWeaponCargoGlobal ["SMAW",1];
LootBox addWeaponCargoGlobal ["BAF_NLAW_Launcher", 1];
LootBox addWeaponCargoGlobal ["Javelin", 1];
LootBox addWeaponCargoGlobal ["Stinger", 1];
LootBox addWeaponCargoGlobal ["M136", 1];

// AT & AA Ammo

LootBox addMagazineCargoGlobal ["MAAWS_HEAT", 20];
LootBox addMagazineCargoGlobal ["MAAWS_HEDP", 20];
LootBox addMagazineCargoGlobal ["SMAW_HEAA",20];
LootBox addMagazineCargoGlobal ["SMAW_HEDP",20];
LootBox addMagazineCargoGlobal ["NLAW", 20];
LootBox addMagazineCargoGlobal ["Javelin", 20];
LootBox addMagazineCargoGlobal ["stinger", 20];
LootBox addMagazineCargoGlobal ["M136", 20];

// Items

LootBox addWeaponCargoGlobal ["Binocular", 10];
LootBox addWeaponCargoGlobal ["Binocular_Vector", 10];
LootBox addWeaponCargoGlobal ["NVGoggles", 10];
LootBox addWeaponCargoGlobal ["ItemGPS", 10];
LootBox addWeaponCargoGlobal ["ItemMAP", 10];
LootBox addWeaponCargoGlobal ["ItemCompass", 10];
LootBox addWeaponCargoGlobal ["ItemWatch", 10];
LootBox addWeaponCargoGlobal ["LaserDesignator", 10];

// Other

LootBox addMagazineCargoGlobal ["IRStrobe", 10];
LootBox addMagazineCargoGlobal ["LaserBatteries", 10];
LootBox addMagazineCargoGlobal ["HandGrenade_West", 20];
LootBox addMagazineCargoGlobal ["PipeBomb", 20];
LootBox addMagazineCargoGlobal ["SmokeShell",20];
LootBox addMagazineCargoGlobal ["SmokeShellBlue",20];
LootBox addMagazineCargoGlobal ["SmokeShellGreen",20];
LootBox addMagazineCargoGlobal ["SmokeShellOrange",20];
LootBox addMagazineCargoGlobal ["SmokeShellPurple",20];
LootBox addMagazineCargoGlobal ["SmokeShellRed",20];
LootBox addMagazineCargoGlobal ["SmokeShellYellow",20];
LootBox addMagazineCargoGlobal ["Mine", 20];

sleep 10;

_smoke="SmokeShellGreen" createVehicle getPos LootBox;

sleep 590;

deleteVehicle LootBox;
deleteVehicle chute;

sleep 600;

};

This post was edited by Officer D (2015-11-14 18:26, ago)


Author Message


Posts: 33
Rank:


Level: Member

Country: us
Location: FL , US
Occupation:
Age:
In-game name: R.Danh or darkstaride

 
#7 Posted at 2015-11-18 23:09        
     
Is this running on a dedicated server? Then, make sure the server is running the addons.

Edit : Sorry for late reply.


Author Message


Posts: 48
Rank:


Level: Member

Country: de
Location: K-Town
Occupation: Medic
Age: 38
In-game name: Officer D

 
#8 Posted at 2015-11-20 23:41        
     
No probs, thanks for replying at all.

Yes, it's on a dedicated server. I thought you were on to something and loaded the cba addons onto the server. unfortunately it didn't change anything. This issue is happening when hosting and on the dedicated, so it doesn't appear to be an addons problem.


Author Message


Posts: 1589
Rank:


Level: Member

Country: pf
Location: Tahiti
Occupation: too many Arma
Age: 60
In-game name: Kobayashi Maru

 
#9 Posted at 2015-11-21 00:18        
     
one idea... I can't test for you, but try to change owner of the box before addAction:

LootBox setowner (owner (leader my_group)); (running on your server of course). Try with any player id in fact. See the command

On the orthe hand, did u try: lootBox allowdamage True; lootBox enableSimulationGlobal true.

PLEASE CONTACT ME ON BI FORUMS FOR ANY SCRIPT / MOD QUESTION. TKS

Author Message


Posts: 48
Rank:


Level: Member

Country: de
Location: K-Town
Occupation: Medic
Age: 38
In-game name: Officer D

 
#10 Posted at 2015-11-21 07:24        
     
I removed the addAction command completley in the last script. I can live without it having that. So would it even matter to try the setowner command?

allowdamage true still isn't letting me take items out of the box and when having enableSimulationGlobal on, the entire script isn't getting called out. Not even the playsound, even tho I had enableSimulationGlobal true after the playsound command. So the way I see it, the script should work as it is but it just doesn't? I have a function module, Game Logic and server Game Logic. I'm not useing any addons but yet, no cigar.


Author Message


Posts: 1589
Rank:


Level: Member

Country: pf
Location: Tahiti
Occupation: too many Arma
Age: 60
In-game name: Kobayashi Maru

 
#11 Posted at 2015-11-22 03:26        
     
Not sure you need that, but i'm not familiar with Arma2:
chute setVehicleInit "chute=this";
processInitCommands;

you should try to avoid enormous sleep 590 and 600. Prefer a waituntil {event true} or another trigger condition.

Something which works when i host the game (change for crate and parachute in arma2) and define _pos of course:
_redairveh = "CUP_O_ZSU23_TK" createVehicle (_pos);
_redairveh setPosATL [(_pos select 0),(_pos select 1),(_pos select 2) +200];
_redairveh allowDamage false;
_redairveh lock 0;
_chuteveh1 = "B_Parachute_02_F" createVehicle (getposatl _redairveh) ;
_chuteveh2 = "B_Parachute_02_F" createVehicle (getposatl _redairveh) ;
_chuteveh3 = "B_Parachute_02_F" createVehicle (getposatl _redairveh) ;
_chuteveh1 setPosATL [getposatl _redairveh select 0 , getposatl _redairveh select 1 , (getposatl _redairveh select 2) +6];
_chuteveh2 setPosATL [(getposatl _redairveh select 0 -0.5), (getposatl _redairveh select 1 +0.3), (getposatl _redairveh select 2) +6];
_chuteveh3 setPosATL [(getposatl _redairveh select 0 -0.5), (getposatl _redairveh select 1 -0.3), (getposatl _redairveh select 2) +6];
_redairveh attachTo [_chuteveh1,[0,1.5,-4]];
_chuteveh2 attachTo [_chuteveh1,[0,0,0]];
_chuteveh3 attachTo [_chuteveh1,[0,0,0]];
_chuteveh1 setVectorUp [0.6,0,0.6];
_chuteveh2 setVectorUp [-0.5,0.4,0.6];
_chuteveh3 setVectorUp [-0.5,-0.4,0.6];
_flare1 = "F_20mm_red" createvehicle getPosATL _redairveh;
_flare1 attachTo [_redairveh,[0,0,-2]];
sleep 1;
waituntil {sleep 1; (getPosatl _redairveh select 2) < 5} ;
detach _redairveh;
deleteVehicle _chuteveh1;
detach _chuteveh3;
detach _chuteveh2;
_redairveh setdamage 0;

Do you have any rpt file tracking for errors in your user local arma folder?

PLEASE CONTACT ME ON BI FORUMS FOR ANY SCRIPT / MOD QUESTION. TKS

Author Message


Posts: 48
Rank:


Level: Member

Country: de
Location: K-Town
Occupation: Medic
Age: 38
In-game name: Officer D

 
#12 Posted at 2015-11-25 05:48        
     
I tried the script without setVehicleInit, without processInitCommands, removed the entire while true and the long sleep timer, just to see if it works. Still the same issue. So here is the dedicated server RPT with a few more errors. Ignore the backpack, lootspawn and zeus stuff for now.

Don't mind the **** I made them unrecognizable.
=====================================================================
== C:\TCAFiles\Users\******\*****\arma2oaserver.exe

== ARMA2OASERVER.exe  -mod=@cba;@cba_a2;@cba_oa;@zeu_ai; -noPause   -name=DefaultServer -profiles=DefaultServer -config=DefaultServer\server.cfg -cfg=DefaultServer\basic.cfg -cpuCount=32 -exThreads=0 -ip=5.9.138.103 -port=2307 

=====================================================================

Exe timestamp: 2014/08/11 20:41:32

Current time:  2015/11/25 06:32:05

 

Version 1.63.125548

Updating base class ->Man, by ca\characters\config.bin/CfgVehicles/CAManBase/

Updating base class ->CAManBase, by ca\characters\config.bin/CfgVehicles/Civilian/

Server error: Player without identity Officer_D (id **********)

Server error: Player without identity Officer_D (id **********)

Server error: Player without identity Officer_D (id **********)

Server error: Player without identity Officer_D (id **********)

Server error: Player without identity Officer_D (id **********)

Server error: Player without identity Officer_D (id **********)

Server error: Player without identity Officer_D (id **********)

Server error: Player without identity Officer_D (id **********)

Server error: Player without identity Officer_D (id **********)

Server error: Player without identity Officer_D (id **********)

Server error: Player without identity Officer_D (id **********)

Server error: Player without identity Officer_D (id **********)

Server error: Player without identity Officer_D (id **********)

Server error: Player without identity Officer_D (id **********)

Server error: Player without identity Officer_D (id **********)

Server error: Player without identity Officer_D (id **********)

Server error: Player without identity Officer_D (id **********)

Server error: Player without identity Officer_D (id **********)

Server error: Player without identity Officer_D (id **********)

Warning: looped for animation: ca\anims\characters\data\anim\sdr\mov\erc\wlk\non\non\amovpercmwlksnonwnondf.rtm differs (looped now 0)! MoveName: amovpercmstpsnonwnondnon_amovpercmstpsraswpstdnon

Warning: looped for animation: ca\anims\characters\data\anim\sdr\mov\erc\wlk\non\non\amovpercmwlksnonwnondf.rtm differs (looped now 1)! MoveName: amovpercmrunsnonwbindf_rfl

[3438,88.215,0,"XEH: PreInit Started. v1.0.0.189. MISSINIT: missionName=PurePVP, worldName=utes, isMultiplayer=true, isServer=true, isDedicated=true"]

[3438,88.884,0,"XEH: PreInit Finished. CACHE DISABLED? (Disable caching with cba_disable_cache.pbo): SLX_XEH_RECOMPILE=false, CBA_COMPILE_RECOMPILE=false, CBA_FUNC_RECOMPILE=false"]

Error in expression < ) exitWith {};

zeu_Null = format["%1", _nullstring];

 

 

if(!isServer) exitWith {>

  Error position: <_nullstring];

 

 

if(!isServer) exitWith {>

  Error Undefined variable in expression: _nullstring

File x\zeu\addons\GLx\f\zeu_Init_Unit.sqf, line 20

[3443,95.586,0,"XEH: PostInit Started"]

[3443,95.599,0,"CBA_VERSIONING: cba=1.0.0.190, cba_a2=1.0.0.8, cba_oa=1.0.0.6, "]

[3443,95.615,0,"XEH: PostInit Finished. State: _isClient=false, _isJip=false, _isDedClient=false, _isServer=true, _isDedServer=true, _playerCheckDone=true, _sp=false, _startInitDone=true, _postInitDone=true, _mpRespawn=true, _machineType=0, _sessionId=1, _level=0, _timeOut=false, _game=1, BIS_functions=L 1-1-A:1, group=L 1-1-A"]

Error in expression <cripts\add_backpack.sqf"

 

_unit = _this select 0;

 

give_assault = _unit addActio>

  Error position: <select 0;

 

give_assault = _unit addActio>

  Error select: Type Object, expected Array,Config entry

File mpmissions\__cur_mp.utes\scripts\add_backpack.sqf, line 2

Error in expression <cripts\add_backpack.sqf"

 

_unit = _this select 0;

 

give_assault = _unit addActio>

  Error position: <select 0;

 

give_assault = _unit addActio>

  Error select: Type Object, expected Array,Config entry

File mpmissions\__cur_mp.utes\scripts\add_backpack.sqf, line 2

Server: Object 3:4 not found (message 96)

Server: Object 3:5 not found (message 89)

Cannot load sound 'jsrs_smoke\reload.wss'

Cannot load sound 'jsrs_grenade\reload.wss'

Error in expression <rtPos;

 

sleep 2;

 

player setPos [getPos this select 0, getPos this select 1, 2];>

  Error position: <this select 0, getPos this select 1, 2];>

  Error Undefined variable in expression: this

File mpmissions\__cur_mp.utes\scripts\RandomSpawn.sqf, line 11

Error in expression <;

_weaponholder addMagazineCargoGlobal [_mag, floor(random(5))];

_weaponholder s>

  Error position: <_mag, floor(random(5))];

_weaponholder s>

  Error Undefined variable in expression: _mag

 

File mpmissions\__cur_mp.utes\scripts\lootSpawn.sqf, line 141

Error in expression <;

_weaponholder addMagazineCargoGlobal [_mag, floor(random(5))];

_weaponholder s>

  Error position: <_mag, floor(random(5))];

_weaponholder s>

  Error Undefined variable in expression: _mag

File mpmissions\__cur_mp.utes\scripts\lootSpawn.sqf, line 141

Error in expression <;

_weaponholder addMagazineCargoGlobal [_mag, floor(random(5))];

_weaponholder s>

  Error position: <_mag, floor(random(5))];

_weaponholder s>

  Error Undefined variable in expression: _mag

File mpmissions\__cur_mp.utes\scripts\lootSpawn.sqf, line 141

Error in expression <;

_weaponholder addMagazineCargoGlobal [_mag, floor(random(5))];

_weaponholder s>

  Error position: <_mag, floor(random(5))];

_weaponholder s>

  Error Undefined variable in expression: _mag

File mpmissions\__cur_mp.utes\scripts\lootSpawn.sqf, line 141

Error in expression <;

_weaponholder addMagazineCargoGlobal [_mag, floor(random(5))];

_weaponholder s>

  Error position: <_mag, floor(random(5))];

_weaponholder s>

  Error Undefined variable in expression: _mag

File mpmissions\__cur_mp.utes\scripts\lootSpawn.sqf, line 141

Error in expression <;

_weaponholder addMagazineCargoGlobal [_mag, floor(random(5))];

_weaponholder s>

  Error position: <_mag, floor(random(5))];

_weaponholder s>

  Error Undefined variable in expression: _mag

File mpmissions\__cur_mp.utes\scripts\lootSpawn.sqf, line 141

Error in expression <;

_weaponholder addMagazineCargoGlobal [_mag, floor(random(5))];

_weaponholder s>

  Error position: <_mag, floor(random(5))];

_weaponholder s>

  Error Undefined variable in expression: _mag

File mpmissions\__cur_mp.utes\scripts\lootSpawn.sqf, line 141

Error in expression <;

_weaponholder addMagazineCargoGlobal [_mag, floor(random(5))];

_weaponholder s>

  Error position: <_mag, floor(random(5))];

_weaponholder s>

  Error Undefined variable in expression: _mag

File mpmissions\__cur_mp.utes\scripts\lootSpawn.sqf, line 141

Error in expression <;

_weaponholder addMagazineCargoGlobal [_mag, floor(random(5))];

_weaponholder s>

  Error position: <_mag, floor(random(5))];

_weaponholder s>

  Error Undefined variable in expression: _mag

File mpmissions\__cur_mp.utes\scripts\lootSpawn.sqf, line 141

Error in expression <;

_weaponholder addMagazineCargoGlobal [_mag, floor(random(5))];

_weaponholder s>

  Error position: <_mag, floor(random(5))];

_weaponholder s>

  Error Undefined variable in expression: _mag

File mpmissions\__cur_mp.utes\scripts\lootSpawn.sqf, line 141

Error in expression <;

_weaponholder addMagazineCargoGlobal [_mag, floor(random(5))];

_weaponholder s>

  Error position: <_mag, floor(random(5))];

_weaponholder s>

  Error Undefined variable in expression: _mag

File mpmissions\__cur_mp.utes\scripts\lootSpawn.sqf, line 141

Error in expression <;

_weaponholder addMagazineCargoGlobal [_mag, floor(random(5))];

_weaponholder s>

  Error position: <_mag, floor(random(5))];

_weaponholder s>

  Error Undefined variable in expression: _mag

File mpmissions\__cur_mp.utes\scripts\lootSpawn.sqf, line 141

Error in expression <;

_weaponholder addMagazineCargoGlobal [_mag, floor(random(5))];

_weaponholder s>

  Error position: <_mag, floor(random(5))];

_weaponholder s>

  Error Undefined variable in expression: _mag

File mpmissions\__cur_mp.utes\scripts\lootSpawn.sqf, line 141

Error in expression <;

_weaponholder addMagazineCargoGlobal [_mag, floor(random(5))];

_weaponholder s>

  Error position: <_mag, floor(random(5))];

_weaponholder s>

  Error Undefined variable in expression: _mag

File mpmissions\__cur_mp.utes\scripts\lootSpawn.sqf, line 141

Error in expression <;

_weaponholder addMagazineCargoGlobal [_mag, floor(random(5))];

_weaponholder s>

  Error position: <_mag, floor(random(5))];

_weaponholder s>

  Error Undefined variable in expression: _mag

File mpmissions\__cur_mp.utes\scripts\lootSpawn.sqf, line 141

Error in expression <;

_weaponholder addMagazineCargoGlobal [_mag, floor(random(5))];

_weaponholder s>

  Error position: <_mag, floor(random(5))];

_weaponholder s>

  Error Undefined variable in expression: _mag

File mpmissions\__cur_mp.utes\scripts\lootSpawn.sqf, line 141

Error in expression <;

_weaponholder addMagazineCargoGlobal [_mag, floor(random(5))];

_weaponholder s>

  Error position: <_mag, floor(random(5))];

_weaponholder s>

  Error Undefined variable in expression: _mag

File mpmissions\__cur_mp.utes\scripts\lootSpawn.sqf, line 141

Error in expression <;

_weaponholder addMagazineCargoGlobal [_mag, floor(random(5))];

_weaponholder s>

  Error position: <_mag, floor(random(5))];

_weaponholder s>

  Error Undefined variable in expression: _mag

File mpmissions\__cur_mp.utes\scripts\lootSpawn.sqf, line 141

Error in expression <;

_weaponholder addMagazineCargoGlobal [_mag, floor(random(5))];

_weaponholder s>

  Error position: <_mag, floor(random(5))];

_weaponholder s>

  Error Undefined variable in expression: _mag

File mpmissions\__cur_mp.utes\scripts\lootSpawn.sqf, line 141

Error in expression <;

_weaponholder addMagazineCargoGlobal [_mag, floor(random(5))];

_weaponholder s>

  Error position: <_mag, floor(random(5))];

_weaponholder s>

  Error Undefined variable in expression: _mag

File mpmissions\__cur_mp.utes\scripts\lootSpawn.sqf, line 141

Error in expression <[], 500, "FLY"];

 

chute setPos [(getpos this select 0), (getPos this select 1), >

  Error position: <this select 0), (getPos this select 1), >

  Error Undefined variable in expression: this

File mpmissions\__cur_mp.utes\scripts\supplydrop.sqf, line 12

Error in expression < ) exitWith {};

zeu_Null = format["%1", _nullstring];

 

 

if(!isServer) exitWith {>

  Error position: <_nullstring];

 

 

if(!isServer) exitWith {>

  Error Undefined variable in expression: _nullstring

File x\zeu\addons\GLx\f\zeu_Init_Unit.sqf, line 20

Error in expression < ) exitWith {};

zeu_Null = format["%1", _nullstring];

 

 

if(!isServer) exitWith {>

  Error position: <_nullstring];

 

 

if(!isServer) exitWith {>

  Error Undefined variable in expression: _nullstring

File x\zeu\addons\GLx\f\zeu_Init_Unit.sqf, line 20

Error in expression < ) exitWith {};

zeu_Null = format["%1", _nullstring];

 

 

if(!isServer) exitWith {>

  Error position: <_nullstring];

 

 

if(!isServer) exitWith {>

  Error Undefined variable in expression: _nullstring

File x\zeu\addons\GLx\f\zeu_Init_Unit.sqf, line 20

Error in expression < ) exitWith {};

zeu_Null = format["%1", _nullstring];

 

 

if(!isServer) exitWith {>

  Error position: <_nullstring];

 

 

if(!isServer) exitWith {>

  Error Undefined variable in expression: _nullstring

File x\zeu\addons\GLx\f\zeu_Init_Unit.sqf, line 20

Error in expression < ) exitWith {};

zeu_Null = format["%1", _nullstring];

 

 

if(!isServer) exitWith {>

  Error position: <_nullstring];

 

 

if(!isServer) exitWith {>

  Error Undefined variable in expression: _nullstring

File x\zeu\addons\GLx\f\zeu_Init_Unit.sqf, line 20

 

Error in expression < ) exitWith {};

zeu_Null = format["%1", _nullstring];

 

 

if(!isServer) exitWith {>

  Error position: <_nullstring];

 

 

if(!isServer) exitWith {>

  Error Undefined variable in expression: _nullstring

File x\zeu\addons\GLx\f\zeu_Init_Unit.sqf, line 20

Error in expression < ) exitWith {};

zeu_Null = format["%1", _nullstring];

 

 

if(!isServer) exitWith {>

  Error position: <_nullstring];

 

 

if(!isServer) exitWith {>

  Error Undefined variable in expression: _nullstring

File x\zeu\addons\GLx\f\zeu_Init_Unit.sqf, line 20

Error in expression < ) exitWith {};

zeu_Null = format["%1", _nullstring];

 

 

if(!isServer) exitWith {>

  Error position: <_nullstring];

 

 

if(!isServer) exitWith {>

  Error Undefined variable in expression: _nullstring

File x\zeu\addons\GLx\f\zeu_Init_Unit.sqf, line 20

Error in expression < ) exitWith {};

zeu_Null = format["%1", _nullstring];

 

 

if(!isServer) exitWith {>

  Error position: <_nullstring];

 

 

if(!isServer) exitWith {>

  Error Undefined variable in expression: _nullstring

File x\zeu\addons\GLx\f\zeu_Init_Unit.sqf, line 20

Error in expression < ) exitWith {};

zeu_Null = format["%1", _nullstring];

 

 

if(!isServer) exitWith {>

  Error position: <_nullstring];

 

 

if(!isServer) exitWith {>

  Error Undefined variable in expression: _nullstring

File x\zeu\addons\GLx\f\zeu_Init_Unit.sqf, line 20

Error in expression < ) exitWith {};

zeu_Null = format["%1", _nullstring];

 

 

if(!isServer) exitWith {>

  Error position: <_nullstring];

 

 

if(!isServer) exitWith {>

  Error Undefined variable in expression: _nullstring

File x\zeu\addons\GLx\f\zeu_Init_Unit.sqf, line 20

Error in expression < ) exitWith {};

zeu_Null = format["%1", _nullstring];

 

 

if(!isServer) exitWith {>

  Error position: <_nullstring];

 

 

if(!isServer) exitWith {>

  Error Undefined variable in expression: _nullstring

File x\zeu\addons\GLx\f\zeu_Init_Unit.sqf, line 20

Client: Remote object 2:253 not found

Client: Remote object 2:254 not found

Client: Remote object 2:255 not found

Error in expression < ) exitWith {};

zeu_Null = format["%1", _nullstring];

 

 

if(!isServer) exitWith {>

  Error position: <_nullstring];

 

 

if(!isServer) exitWith {>

  Error Undefined variable in expression: _nullstring

File x\zeu\addons\GLx\f\zeu_Init_Unit.sqf, line 20

Error in expression < {true} do {

 

sleep 223;

 

deleteVehicle utes_btr90;

deleteVehicle utes_btr90_dri>

  Error position: <utes_btr90;

deleteVehicle utes_btr90_dri>

  Error Undefined variable in expression: utes_btr90

File mpmissions\__cur_mp.utes\spawn_enemy\SpawnAI04.sqf, line 5

Error in expression < ) exitWith {};

zeu_Null = format["%1", _nullstring];

 

 

if(!isServer) exitWith {>

  Error position: <_nullstring];

 

 

if(!isServer) exitWith {>

  Error Undefined variable in expression: _nullstring

File x\zeu\addons\GLx\f\zeu_Init_Unit.sqf, line 20

Error in expression < ) exitWith {};

zeu_Null = format["%1", _nullstring];

 

 

if(!isServer) exitWith {>

  Error position: <_nullstring];

 

 

if(!isServer) exitWith {>

  Error Undefined variable in expression: _nullstring

File x\zeu\addons\GLx\f\zeu_Init_Unit.sqf, line 20


Author Message


Posts: 1589
Rank:


Level: Member

Country: pf
Location: Tahiti
Occupation: too many Arma
Age: 60
In-game name: Kobayashi Maru

 
#13 Posted at 2015-11-25 06:10        
     
if (isServer) then {[] execVM "scripts\supplydrop.sqf"};
You should pass parameters in execVM even if empty!
chute setPos [(getpos this select 0), (getPos this select 1), (getPos this select 2)+200];
replace with:
chute setPos [(getpos chute select 0), (getPos chute select 1), (getPos chute select 2)+200];
_weaponholder addMagazineCargoGlobal [_mag, floor(random(5))];
_mag is a local variable and must be define before, in the same scope (script or loop).
Coming from another script, use parameter array: [_mag] execVM ....sqf ; then in ....sqf:
_mag = _this select 0;
then use _mag (recognized yet)
Or, within the same sqf but in a loop, add private "_mag" at top of this file. (declare this local variable)

zeu_Null = format["%1", _nullstring]; ???? what for?

Difficult to debug patchwork of scripts. But try to track each undefined local variable like _variable and apply the "medic" above.

PLEASE CONTACT ME ON BI FORUMS FOR ANY SCRIPT / MOD QUESTION. TKS

Author Message


Posts: 48
Rank:


Level: Member

Country: de
Location: K-Town
Occupation: Medic
Age: 38
In-game name: Officer D

 
#14 Posted at 2015-11-25 06:59        
     
Done.

I disabled the zeu_ai mod and the weapon spawn script, since they aren't mine. I don't really want to mess around with them yet. However doing the change to the supplydrop.sqf and having the other mod/script disabled, I still get the same issue. The script works but I can't move gear from the box into my inventory.

this is the current RPT. There doesn't seem to be a problem with the supplydrop.sqf
=====================================================================
== C:\TCAFiles\Users\*******\******\arma2oaserver.exe

== ARMA2OASERVER.exe  -noPause   -name=DefaultServer -profiles=DefaultServer -config=DefaultServer\server.cfg -cfg=DefaultServer\basic.cfg -cpuCount=32 -exThreads=0 -ip=5.9.138.103 -port=2307 

=====================================================================

Exe timestamp: 2014/08/11 20:41:32

Current time:  2015/11/25 07:46:48

 

Version 1.63.125548

Server error: Player without identity Officer_D (id **********)

Server error: Player without identity Officer_D (id **********)

Server error: Player without identity Officer_D (id **********)

...

Warning: looped for animation: ca\anims\characters\data\anim\sdr\mov\erc\wlk\non\non\amovpercmwlksnonwnondf.rtm differs (looped now 1)! MoveName: amovpercmrunsnonwbindf_rfl

Error in expression <cripts\add_backpack.sqf"

 

_unit = _this select 0;

 

give_assault = _unit addActio>

  Error position: <select 0;

 

give_assault = _unit addActio>

  Error select: Type Object, expected Array,Config entry

File mpmissions\__cur_mp.utes\scripts\add_backpack.sqf, line 2

Error in expression <cripts\add_backpack.sqf"

 

_unit = _this select 0;

 

give_assault = _unit addActio>

  Error position: <select 0;

 

give_assault = _unit addActio>

  Error select: Type Object, expected Array,Config entry

File mpmissions\__cur_mp.utes\scripts\add_backpack.sqf, line 2

Error in expression <;

_recompile = (count _this) > 0;

 

 

if (BIS_fnc_init && !_recompile) exitwith {t>

  Error position: <BIS_fnc_init && !_recompile) exitwith {t>

  Error Undefined variable in expression: bis_fnc_init

File ca\Modules\Functions\init.sqf, line 28

Server: Object 3:4 not found (message 96)

Server: Object 3:5 not found (message 89)

Cannot load sound 'jsrs_smoke\reload.wss'

Cannot load sound 'jsrs_grenade\reload.wss'

Error in expression <rtPos;

 

sleep 2;

 

player setPos [getPos this select 0, getPos this select 1, 2];>

  Error position: <this select 0, getPos this select 1, 2];>

  Error Undefined variable in expression: this

File mpmissions\__cur_mp.utes\scripts\RandomSpawn.sqf, line 11

and here my script setup:
init.sqf
if (isServer) then {[] execVM "scripts\supplydrop.sqf";};
supplydrop.sqf
sleep 30;
waitUntil{!(isNil "BIS_MPF_InitDone")};    
[nil,nil,rPLAYSOUND,"c130"] call RE;

sleep 8;

chute = createVehicle ["ParachuteBigWest", getMarkerPos "LootSpawn1", [], 500, "FLY"];

chute setPos [(getpos chute select 0), (getPos chute select 1), (getPos chute select 2)+200];

LootBox = "USVehicleBox" createVehicle (getMarkerPos "LootSpawn2");

LootBox attachto [chute, [0, 0, +1.5]];
LootBox allowDamage true;
chute allowDamage false;

sleep 4;

waitUntil{!(isNil "BIS_MPF_InitDone")};
[nil,nil,rHINT,"Loot Box Drop! Christmas is comming early this year. But be quick, the loot box will despawn in 10 minuets."] call RE;

waitUntil {((getPos LootBox) select 2) < 0.5};

detach LootBox;

LootBox setpos [(getpos LootBox) select 0, (getpos LootBox) select 1, 0];

chute setPos [(getpos LootBox select 0)-2, (getPos LootBox select 1)-2, (getPos LootBox select 2) -2];

clearMagazineCargo LootBox;
clearWeaponCargo LootBox;
clearBackpackCargoGlobal LootBox;

// Rifles

LootBox addWeaponCargoGlobal ["M14_EP1", 1];
LootBox addWeaponCargoGlobal ["m16a4_acg", 1];
LootBox addWeaponCargoGlobal ["M4A1_AIM_SD_camo", 1];
LootBox addWeaponCargoGlobal ["M4A3_CCO_EP1", 1];
LootBox addWeaponCargoGlobal ["m8_holo_sd", 1];
LootBox addWeaponCargoGlobal ["m8_sharpshooter", 1];
LootBox addWeaponCargoGlobal ["SCAR_L_CQC_CCO_SD", 1];
LootBox addWeaponCargoGlobal ["SCAR_L_CQC", 1];
LootBox addWeaponCargoGlobal ["SCAR_H_LNG_Sniper", 1];
LootBox addWeaponCargoGlobal ["SCAR_H_LNG_Sniper_SD", 1];

// Rifle Ammo

LootBox addMagazineCargoGlobal ["20Rnd_762x51_B_SCAR", 20];
LootBox addMagazineCargoGlobal ["20Rnd_762x51_SB_SCAR", 20];
LootBox addMagazineCargoGlobal ["30Rnd_9x19_MP5", 20];
LootBox addMagazineCargoGlobal ["30Rnd_9x19_MP5SD", 20];
LootBox addMagazineCargoGlobal ["30Rnd_556x45_G36", 20];
LootBox addMagazineCargoGlobal ["30Rnd_556x45_G36SD", 20];
LootBox addMagazineCargoGlobal ["30Rnd_556x45_Stanag", 20];
LootBox addMagazineCargoGlobal ["30Rnd_556x45_StanagSD", 20];

// Shotguns

LootBox addWeaponCargoGlobal ["M1014", 1];
LootBox addWeaponCargoGlobal ["AA12_PMC", 1];

//Shotgun Ammo

LootBox addMagazineCargoGlobal ["8Rnd_B_Beneli_Pellets", 20];
LootBox addMagazineCargoGlobal ["20Rnd_B_AA12_Pellets", 20];

// Sniper Rifles

LootBox addWeaponCargoGlobal ["m107", 1];
LootBox addWeaponCargoGlobal ["BAF_AS50_scoped", 1];
LootBox addWeaponCargoGlobal ["BAF_LRR_scoped_W", 1];
LootBox addWeaponCargoGlobal ["BAF_LRR_scoped", 1];
LootBox addWeaponCargoGlobal ["M110_NVG_EP1", 1];
LootBox addWeaponCargoGlobal ["DMR", 1];
LootBox addWeaponCargoGlobal ["M24", 1];
LootBox addWeaponCargoGlobal ["M24_des_EP1", 1];
LootBox addWeaponCargoGlobal ["M40A3", 1];

// Sniper Ammo

LootBox addMagazineCargoGlobal ["20Rnd_762x51_DMR", 20];
LootBox addMagazineCargoGlobal ["5Rnd_762x51_M24", 20];
LootBox addMagazineCargoGlobal ["10Rnd_127x99_m107", 20];
LootBox addMagazineCargoGlobal ["5Rnd_127x99_as50", 20];
LootBox addMagazineCargoGlobal ["5Rnd_86x70_L115A1", 20];

// Machineguns

LootBox addWeaponCargoGlobal ["m240_scoped_EP1", 1];
LootBox addWeaponCargoGlobal ["Mk_48_DES_EP1", 1];
LootBox addWeaponCargoGlobal ["M249_EP1", 1];
LootBox addWeaponCargoGlobal ["M249_m145_EP1", 1];
LootBox addWeaponCargoGlobal ["M60A4_EP1", 1];

// LMG Ammo

LootBox addMagazineCargoGlobal ["100Rnd_762x51_M240", 20];
LootBox addMagazineCargoGlobal ["200Rnd_556x45_M249", 20];
LootBox addMagazineCargoGlobal ["100Rnd_556x45_BetaCMag", 20];

// Sidearm

LootBox addWeaponCargoGlobal ["M9", 1];
LootBox addWeaponCargoGlobal ["M9SD",1];
LootBox addWeaponCargoGlobal ["Colt1911", 1];
LootBox addWeaponCargoGlobal ["glock17_EP1", 1];

// Sidearm Ammo

LootBox addMagazineCargoGlobal ["7Rnd_45ACP_1911", 20];
LootBox addMagazineCargoGlobal ["15Rnd_9x19_M9", 20];
LootBox addMagazineCargoGlobal ["15Rnd_9x19_M9SD",20];
LootBox addMagazineCargoGlobal ["17Rnd_9x19_glock17", 20];

// AT & AA

LootBox addWeaponCargoGlobal ["MAAWS", 1];
LootBox addWeaponCargoGlobal ["SMAW",1];
LootBox addWeaponCargoGlobal ["BAF_NLAW_Launcher", 1];
LootBox addWeaponCargoGlobal ["Javelin", 1];
LootBox addWeaponCargoGlobal ["Stinger", 1];
LootBox addWeaponCargoGlobal ["M136", 1];

// AT & AA Ammo

LootBox addMagazineCargoGlobal ["MAAWS_HEAT", 20];
LootBox addMagazineCargoGlobal ["MAAWS_HEDP", 20];
LootBox addMagazineCargoGlobal ["SMAW_HEAA",20];
LootBox addMagazineCargoGlobal ["SMAW_HEDP",20];
LootBox addMagazineCargoGlobal ["NLAW", 20];
LootBox addMagazineCargoGlobal ["Javelin", 20];
LootBox addMagazineCargoGlobal ["stinger", 20];
LootBox addMagazineCargoGlobal ["M136", 20];

// Items

LootBox addWeaponCargoGlobal ["Binocular", 10];
LootBox addWeaponCargoGlobal ["Binocular_Vector", 10];
LootBox addWeaponCargoGlobal ["NVGoggles", 10];
LootBox addWeaponCargoGlobal ["ItemGPS", 10];
LootBox addWeaponCargoGlobal ["ItemMAP", 10];
LootBox addWeaponCargoGlobal ["ItemCompass", 10];
LootBox addWeaponCargoGlobal ["ItemWatch", 10];
LootBox addWeaponCargoGlobal ["LaserDesignator", 10];

// Other

LootBox addMagazineCargoGlobal ["IRStrobe", 10];
LootBox addMagazineCargoGlobal ["LaserBatteries", 10];
LootBox addMagazineCargoGlobal ["HandGrenade_West", 20];
LootBox addMagazineCargoGlobal ["PipeBomb", 20];
LootBox addMagazineCargoGlobal ["SmokeShell",20];
LootBox addMagazineCargoGlobal ["SmokeShellBlue",20];
LootBox addMagazineCargoGlobal ["SmokeShellGreen",20];
LootBox addMagazineCargoGlobal ["SmokeShellOrange",20];
LootBox addMagazineCargoGlobal ["SmokeShellPurple",20];
LootBox addMagazineCargoGlobal ["SmokeShellRed",20];
LootBox addMagazineCargoGlobal ["SmokeShellYellow",20];
LootBox addMagazineCargoGlobal ["Mine", 20];

sleep 10;

_smoke="SmokeShellGreen" createVehicle getPos LootBox;


Author Message


Posts: 1589
Rank:


Level: Member

Country: pf
Location: Tahiti
Occupation: too many Arma
Age: 60
In-game name: Kobayashi Maru

 
#15 Posted at 2015-11-25 08:07        
     
give_assault = _unit addAction ...
I don't see that in your script but you seems to have problem with player _unit and then addAction can't work.

waitUntil{!(isNil "BIS_MPF_InitDone")};
[nil,nil,rHINT,"Loot Box Drop! Christmas is comming early this year. But be quick, the loot box will despawn in 10 minuets."] call RE;

I'm not sure but it seems Bis_MPF_initDone doesn't work with RE:
https://community.bistudio.com/wiki/Multiplayer_framework

This post was edited by Pierre MGI (2015-11-25 08:17, ago)

PLEASE CONTACT ME ON BI FORUMS FOR ANY SCRIPT / MOD QUESTION. TKS