Jump to content

jmkkkk

Member
  • Content Count

    3
  • Joined

  • Last visited

  • Medals

Everything posted by jmkkkk

  1. Norrin give me the right code for changing the ammo in the case. deploy_camo.sqf : switch (playerSide) do { case west: {_ammo = "USSpecialWeaponsBox" createVehicle [(_pos_vcl select 0) + (4 * sin (_dir_vcl - 90)), (_pos_vcl select 1) + (4 * cos (_dir_vcl - 90)) , 0];}; case east: {_ammo = "RUBasicAmmunitionBox" createVehicle [(_pos_vcl select 0) + (4 * sin (_dir_vcl - 90)), (_pos_vcl select 1) + (4 * cos (_dir_vcl - 90)) , 0];}; case resistance: {_ammo = "GuerillaCacheBox" createVehicle [(_pos_vcl select 0) + (4 * sin (_dir_vcl - 90)), (_pos_vcl select 1) + (4 * cos (_dir_vcl - 90)) , 0];}; }; _ammo setVehicleInit "nul = [this] execVM 'ammo.sqf'"; processInitCommands; Thanks Norrin.
  2. It doesn't work for me. Here the script and your modification. /* DEPLOY CAMO SCRIPT © norrin, April 2008 *********************************************************************************************************************************** deploy_camo.sqf */ _vcl = _this select 0; _pos_vcl = getPos _vcl; _dir_vcl = getDir _vcl; switch (playerSide) do { case west: {_the_box ="USBasicWeaponsBox" createVehicle [_pos_vcl select 0, (_pos_vcl select 1) - 2, (_pos_vcl select 2) - 4];}; case east: {"RUBasicWeaponsBox" createVehicle [_pos_vcl select 0, (_pos_vcl select 1) - 2, (_pos_vcl select 2) - 4];}; case resistance: {"GuerillaCacheBox " createVehicle [_pos_vcl select 0, (_pos_vcl select 1) - 2, (_pos_vcl select 2) - 4];}; }; _the_box setVehicleInit "nul = [] execVM 'ammo.sqf'"; processInitCommands; _vcl setFuel 0; _camo = "Land_CamoNetB_NATO" createVehicle _pos_vcl; _camo setDir (_dir_vcl + 90); _camo setPos [(_pos_vcl select 0) + (sqrt (4) * cos (155 - _dir_vcl)), (_pos_vcl select 1) + (sqrt (4) * sin (155 - _dir_vcl)) , 0]; NORRN_camo_net = true; publicVariable "NORRN_camo_net"; _vcl removeAction NORRN_l_spawn_act; if (true) exitWith {};
  3. Hello, I am trying to change the weapons in the ammo box created by deploy_camo.sqf. I try to add : null = _vcl execVM "ammo.sqf"; But it doen't work. Thanks for your help and thanks for your revive script.
×