Jump to content

Ghost

Member
  • Content Count

    668
  • Joined

  • Last visited

  • Medals

  • Medals

Posts posted by Ghost


  1. sorry about the double quotes, did a quick copy from mission.sqm. Single quote is the format you need. Now Rescue2 is the vehicle or your unit? if it is your unit make it the vehicle and put that script initline in the initbox of the vehicle.

    hav_uavin = vehname addAction ["Get In", "getin.sqf", [], 6, true, true, "","alive _target"];

    ;

    copy the initline and use that. make sure getin.sqf is in your main missions folder under mydocuments\arma2\missions.


  2. this is one of my addaction scripts and it works perfectly

    _host = _this select 0;
    _caller = _this select 1;
    _id = _this select 2;
    if (not alive _host) exitwith {
    hint "Unit Not Alive"; 
    _host removeaction _id;
    };
    _caller sidechat format ["lets go %1, were getting you out of here", name _host];
    [_host] join _caller;
    _host setcaptive false;
    _host enableAI "Move";
    
    _host removeaction _id;
    
    _hostleave = _host addAction ["Leave Hostage", "dta\scripts\ghst_hostleave.sqf", [], 6, true, true, "","alive _target and not pows"];

    if yours is not working then something with your initline for starting the script is off or something. this is my script initline

    ghst_hostjoin = pow2 addAction [""Rescue Hostage"", ""dta\scripts\ghst_hostjoin.sqf"", [], 6, true, true, """",""alive _target and not pows""];

    possible try different prioritys.


  3. addaction passes multiple vars to the script and those are accessed as follows

    _host = _this select 0;
    _caller = _this select 1;
    _id = _this select 2;

    caller is the unit activating the addaction, host is the object where the addaction is attached to and id is the action ref. to have another addaction launch from the script and work properly you need to use _caller instead of the hostname.

    _caller moveincommander UAVMHQ;
    
    _caller removeAction _uavin;
    
    _uavout = _caller addAction ["Get Out", "getout.sqf"];

    that should work. or you could use _host too if you would like for getout.

    http://community.bistudio.com/wiki/addAction


  4. I just followed the examples from the wiki. Basically when you used

    _crate = "RUBasicAmmunitionBox" createVehicle ....

    _crate refers to the model and all kinds of stuff. if you want to know what im talking about put a hint in the script after the createvehicle command as follows

    hint format ["%1", _crate];

    so since _crate is not technically the name of the object but what the object is you have to use the setvehicleinit command then process those commands via processinitcommands.


  5. something like this. Might need tweaking

    if (!isServer) exitWith {}; 
    
    _crate = "RUBasicAmmunitionBox" createVehicle (getMarkerPos "friendly"); 
    _crate setvehicleinit "clearMagazineCargo this; clearWeaponCargo this; this addMagazineCargo ["FlareGreen_M203", 25]; this addMagazineCargo ["FlareRed_M203", 25]; 
    this addMagazineCargo ["FlareWhite_M203", 25]; this addMagazineCargo ["FlareYellow_M203", 25];";
    processInitCommands;
    sleep 1;
    clearVehicleInit _crate;


  6. create a trigger set it to repeat and put condition

    local player

    then in onactivation field put

    _psettings = [] execvm "playersettings.sqf";

    create new text file and rename it playersettings.sqf. in that file put the following

    BIS_MENU_GroupCommunication = [
    ["User menu", false],
    ["View distance 2000", [2], "", -5, [["expression", "setviewdistance 2000; hint (""View distance set to "" + str viewdistance)"]], "1", "1"],
    ["View distance 3000", [3], "", -5, [["expression", "setviewdistance 3000; hint (""View distance set to "" + str viewdistance)"]], "1", "1"],
    ["View distance 4000", [4], "", -5, [["expression", "setviewdistance 4000; hint (""View distance set to "" + str viewdistance)"]], "1", "1"],
    ["View distance 5000", [5], "", -5, [["expression", "setviewdistance 5000; hint (""View distance set to "" + str viewdistance)"]], "1", "1"],
    ["View distance 6000", [6], "", -5, [["expression", "setviewdistance 6000; hint (""View distance set to "" + str viewdistance)"]], "1", "1"]
    ];

    now you access that by pressing 0-8 then the number option. Mess with that


  7. copy this verbatim

    ; HELP: Run this script from the INITIALIZATION box of the crate.
    ; CODE: nul0 = this execVM "ammo.sqf";
    ; ************************************************** **************
    ; Remove the stock items from the crate
    clearMagazineCargo _this
    clearWeaponCargo _this
    
    //WEAPONS//
    
    
    _this addweaponcargo ["ACE_ParachutePack",50];
    _this addweaponcargo ["M9",15];
    _this addweaponcargo ["M9SD",15];
    _this addweaponcargo ["Colt1911",15];
    _this addweaponcargo ["ACE_Glock17",15];
    _this addweaponcargo ["ACE_Glock18",15];
    _this addweaponcargo ["ACE_Flaregun",15];
    _this addweaponcargo ["M16A2",15];
    _this addweaponcargo ["M16A2GL",15];
    _this addweaponcargo ["M16A4",15];
    _this addweaponcargo ["M16A4_GL",15];
    _this addweaponcargo ["M16A4_ACG",15];
    _this addweaponcargo ["M16A4_ACG_GL",15];
    _this addweaponcargo ["ACE_M16A4_Iron",15];
    _this addweaponcargo ["M4A1",15];
    _this addweaponcargo ["ACE_M4A1_GL",15];
    _this addweaponcargo ["ACE_M4A1_GL_SD",15];
    _this addweaponcargo ["M4A1_HWS_GL",15];
    _this addweaponcargo ["M4A1_HWS_GL_camo",15];
    _this addweaponcargo ["M4A1_HWS_GL_SD_Camo",1]5;
    _this addweaponcargo ["M4A1_RCO_GL",15];
    _this addweaponcargo ["M4A1_Aim",15];
    _this addweaponcargo ["M4A1_Aim_camo",15];
    _this addweaponcargo ["M4A1_AIM_SD_camo",15];
    _this addweaponcargo ["ACE_SOC_M4A1_Aim",15];
    _this addweaponcargo ["ACE_SOC_M4A1_AIM_SD",15];
    _this addweaponcargo ["ACE_SOC_M4A1_GL",15];
    _this addweaponcargo ["ACE_SOC_M4A1",15];
    _this addweaponcargo ["ACE_SOC_M4A1_GL_SD",15];
    _this addweaponcargo ["ACE_SOC_M4A1_Eotech",15];
    _this addweaponcargo ["ACE_SOC_M4A1_GL_13",15];
    _this addweaponcargo ["ACE_SOC_M4A1_GL_EOTECH",15];
    _this addweaponcargo ["ACE_SOC_M4A1_SD_9",15];
    _this addweaponcargo ["ACE_SOC_M4A1_SHORTDOT",15];
    _this addweaponcargo ["ACE_SOC_M4A1_SHORTDOT_SD",15];
    _this addweaponcargo ["ACE_SOC_M4A1_RCO_GL",15];
    _this addweaponcargo ["ACE_SOC_M4A1_GL_AIMPOINT",15];
    _this addweaponcargo ["ACE_M4A1_ACOG",15];
    _this addweaponcargo ["ACE_M4A1_ACOG_SD",15];
    _this addweaponcargo ["ACE_M4A1_Aim_SD",15];
    _this addweaponcargo ["ACE_M4A1_Eotech",15];
    _this addweaponcargo ["ACE_FAL_Para",15];
    _this addweaponcargo ["ACE_SA58",15];
    _this addweaponcargo ["G36a",10];
    _this addweaponcargo ["G36c",10];
    _this addweaponcargo ["G36_C_SD_eotech",10];
    _this addweaponcargo ["G36k",10];
    _this addweaponcargo ["M1014",10];
    _this addweaponcargo ["MP5A5",10];
    _this addweaponcargo ["MP5SD",10];	
    _this addweaponcargo ["ACE_MP5A4",10];
    _this addweaponcargo ["ACE_UMP45",10];
    _this addweaponcargo ["ACE_UMP45_SD",10];
    _this addweaponcargo ["M8_carbine",10];
    _this addweaponcargo ["M8_carbineGL",10];
    _this addweaponcargo ["M8_compact",10];
    _this addweaponcargo ["MG36",10];
    _this addweaponcargo ["Mk_48",10];
    _this addweaponcargo ["M240",10];
    _this addweaponcargo ["ACE_M240G_M145",10];
    _this addweaponcargo ["ACE_M60",10];
    _this addweaponcargo ["M249",10];
    _this addweaponcargo ["ACE_M249Para",10];
    _this addweaponcargo ["ACE_M249Para_M145",10];
    _this addweaponcargo ["M8_SAW",10];
    _this addweaponcargo ["M24",10];
    _this addweaponcargo ["DMR",10];
    _this addweaponcargo ["M107",10];
    _this addweaponcargo ["M40A3",10];
    _this addweaponcargo ["M4SPR",10];
    _this addweaponcargo ["ACE_M4SPR_SD",10];
    _this addweaponcargo ["M8_sharpshooter",10];
    _this addweaponcargo ["ACE_M109",10];
    _this addweaponcargo ["ACE_M110",10];
    _this addweaponcargo ["ACE_M110_SD",10];
    _this addweaponcargo ["ACE_TAC50",10];
    _this addweaponcargo ["ACE_TAC50_SD",10];
    _this addweaponcargo ["M136",10];
    _this addweaponcargo ["SMAW",10];
    _this addweaponcargo ["ACE_M32",10];
    _this addweaponcargo ["ACE_M79",10];
    _this addweaponcargo ["ACE_GlassesSpectacles",10];
    _this addweaponcargo ["ACE_GlassesRoundGlasses",10];
    _this addweaponcargo ["ACE_GlassesSunglasses",10];
    _this addweaponcargo ["ACE_GlassesBlackSun",10];
    _this addweaponcargo ["ACE_GlassesBlueSun",10];
    _this addweaponcargo ["ACE_GlassesRedSun",10];
    _this addweaponcargo ["ACE_GlassesGreenSun",10];
    _this addweaponcargo ["ACE_GlassesLHD_glasses",10];
    _this addweaponcargo ["ACE_GlassesLHD_glasses",10];
    _this addweaponcargo ["ACE_GlassesTactical",10];
    _this addweaponcargo ["ACE_GlassesGasMask_US",10];
    _this addweaponcargo ["ACE_GlassesBalaklava",10];
    _this addweaponcargo ["ACE_Earplugs",10];
    _this addweaponcargo ["Laserdesignator",10];
    _this addweaponcargo ["ACE_Rangefinder_OD",10];
    _this addweaponcargo ["Binocular",10];
    _this addweaponcargo ["NVGoggles",10];
    _this addweaponcargo ["JAVELIN",10];
    _this addweaponcargo ["STINGER",10];
    _this addweaponcargo ["AK_107_kobra",10];
    _this addweaponcargo ["AK_107_GL_kobra",10];
    _this addweaponcargo ["AK_107_GL_pso",10];
    _this addweaponcargo ["AK_107_pso",10];
    _this addweaponcargo ["AK_74",10];
    _this addweaponcargo ["AK_74_GL",10];
    _this addweaponcargo ["ACE_Spottingscope",10];
    _this addweaponcargo ["ACE_Wirecutter",10];
    _this addweaponcargo ["ACE_ParachuteRoundPack",10];
    _this addweaponcargo ["ACE_C4_M ",10];
    _this addweaponcargo ["ACE_ACE_Sandbag_Magazine",100];
    _this addweaponcargo ["ACE_USP",10];
    _this addweaponcargo ["ACE_USPSD",10];
    _this addweaponcargo ["ACE_P226",10];
    
    
    
    
    //AMMO//
    
    _this addmagazinecargo ["ACE_15Rnd_9x19_USP",50];
    _this addmagazinecargo ["ACE_15Rnd_9x19_USPSD",50];
    _this addmagazinecargo ["ACE_Battery_Rangefinder",50];
    _this addmagazinecargo ["HandGrenade_West",50];
    _this addmagazinecargo ["HandGrenade_Stone",50];
    _this addmagazinecargo ["Smokeshell",50];
    _this addmagazinecargo ["Smokeshellred",50];
    _this addmagazinecargo ["Smokeshellgreen",50];
    _this addmagazinecargo ["SmokeShellYellow",50];
    _this addmagazinecargo ["SmokeShellOrange",50];
    _this addmagazinecargo ["SmokeShellPurple",50];
    _this addmagazinecargo ["ace_flashbang",50];
    _this addmagazinecargo ["ace_m84",50];
    _this addmagazinecargo ["ace_m7a3",50];
    _this addmagazinecargo ["ace_m34",50];
    _this addmagazinecargo ["ACE_IRStrobe",50];
    _this addmagazinecargo ["ACE_M86PDM",50];
    _this addmagazinecargo ["ACE_M2SLAM_M",50];
    _this addmagazinecargo ["30Rnd_9x19_MP5",50];
    _this addmagazinecargo ["30Rnd_9x19_MP5SD",50];
    _this addmagazinecargo ["ACE_25Rnd_1143x23_B_UMP45",50];
    _this addmagazinecargo ["7Rnd_45ACP_1911",50];
    _this addmagazinecargo ["15Rnd_9x19_M9",50];
    _this addmagazinecargo ["15Rnd_9x19_M9SD",50];
    _this addmagazinecargo ["ACE_33Rnd_9x19_G18",50];
    _this addmagazinecargo ["ACE_17Rnd_9x19_G17",50];
    _this addmagazinecargo ["20Rnd_556x45_Stanag",50];
    _this addmagazinecargo ["30Rnd_556x45_Stanag",50];
    _this addmagazinecargo ["ACE_30Rnd_556x45_T_Stanag",50];
    _this addmagazinecargo ["30Rnd_556x45_StanagSD",50];
    _this addmagazinecargo ["ACE_20Rnd_762x51_B_FAL",50];
    _this addmagazinecargo ["ACE_30Rnd_762x51_B_FAL",50];
    _this addmagazinecargo ["30Rnd_556x45_G36",50];
    _this addmagazinecargo ["200Rnd_556x45_M249",50];
    _this addmagazinecargo ["ACE_200Rnd_556x45_T_M249",50];
    _this addmagazinecargo ["100Rnd_556x45_BetaCMag",50];
    _this addmagazinecargo ["8Rnd_B_Beneli_74Slug",50];
    _this addmagazinecargo ["ACE_8Rnd_12Ga_Slug",50];
    _this addmagazinecargo ["ACE_8Rnd_12Ga_Buck00",50];
    _this addmagazinecargo ["ACE_9Rnd_12Ga_Slug",50];
    _this addmagazinecargo ["ACE_9Rnd_12Ga_Buck00",50];
    _this addmagazinecargo ["5Rnd_762x51_M24",50];
    _this addmagazinecargo ["ACE_5Rnd_762x51_T_M24",50];
    _this addmagazinecargo ["20Rnd_762x51_DMR",50];
    _this addmagazinecargo ["ACE_20Rnd_762x51_T_DMR",50];
    _this addmagazinecargo ["10Rnd_127x99_M107",3];
    _this addmagazinecargo ["ACE_10Rnd_127x99_T_m107",3];
    _this addmagazinecargo ["ACE_5Rnd_25x59_HEDP_Barrett",3];
    _this addmagazinecargo ["ACE_20Rnd_762x51_SB_M110",50];
    _this addmagazinecargo ["ACE_20Rnd_762x51_S_M110",50];
    _this addmagazinecargo ["ACE_20Rnd_762x51_T_M110",50];
    _this addmagazinecargo ["ACE_5Rnd_127x99_B_TAC50",3];
    _this addmagazinecargo ["ACE_5Rnd_127x99_S_TAC50",3];
    _this addmagazinecargo ["ACE_5Rnd_127x99_T_TAC50",3];
    _this addmagazinecargo ["100Rnd_762x51_M240",50];
    _this addmagazinecargo ["1Rnd_HE_M203",50];
    _this addmagazinecargo ["ace_1rnd_cs_m203",50];
    _this addmagazinecargo ["ACE_6Rnd_40mm_M32",50];
    _this addmagazinecargo ["FlareWhite_M203",50];
    _this addmagazinecargo ["FlareGreen_M203",50];
    _this addmagazinecargo ["FlareRed_M203",50];
    _this addmagazinecargo ["ACE_SSWhite_M203",50];
    _this addmagazinecargo ["ACE_SSGreen_M203",50];
    _this addmagazinecargo ["ACE_SSRed_M203",50];
    _this addmagazinecargo ["ACE_SSYellow_M203",50];
    _this addmagazinecargo ["1Rnd_SmokeRed_M203",50];
    _this addmagazinecargo ["1Rnd_SmokeGreen_M203",50];
    _this addmagazinecargo ["1Rnd_SmokeYellow_M203",50];
    _this addmagazinecargo ["1Rnd_Smoke_M203",50];
    _this addMagazineCargo ["ACE_SSWhite_FG",50];
    _this addMagazineCargo ["ACE_SSRed_FG",50];
    _this addMagazineCargo ["ACE_SSGreen_FG",50];
    _this addMagazineCargo ["ACE_SSYellow_FG",50];
    _this addmagazinecargo ["M136",10];
    _this addmagazinecargo ["SMAW_HEAA",3];
    _this addmagazinecargo ["SMAW_HEDP",3];
    _this addmagazinecargo ["ACE_SMAW_Spotting",30];
    _this addmagazinecargo ["Pipebomb",30];
    _this addmagazinecargo ["Mine",30];
    _this addmagazinecargo ["ACE_Claymore_M",30];
    _this addmagazinecargo ["ACE_BBetty_M",30];
    _this addmagazinecargo ["ACE_TripFlare_M",30];
    _this addmagazinecargo ["Laserbatteries",20];
    _this addmagazinecargo ["JAVELIN",1];
    _this addmagazinecargo ["STINGER",2];
    _this addmagazinecargo ["30Rnd_545x39_AK",50];
    _this addmagazinecargo ["30Rnd_762x39_AK47",50];
    _this addmagazinecargo ["FlareWhite_GP25",50];
    _this addmagazinecargo ["FlareGreen_GP25",50];
    _this addmagazinecargo ["FlareRed_GP25",50];
    _this addmagazinecargo ["FlareYellow_GP25",50];
    _this addmagazinecargo ["1Rnd_HE_GP25",50];
    _this addmagazinecargo ["SmokeShellRed",50];
    _this addmagazinecargo ["SmokeShellGreen",50];
    _this addmagazinecargo ["SmokeShell",50];
    


  8. http://community.bistudio.com/wiki/getPosASL

    you have to do something like the example from the link

    hint format["position above sea level: %1",(getPosASL player) select 2]

    select 0 = x, select 1 = y, select 2 = z

    so maybe something as follows

    if ((getposasl UNIT1) select 2) < (getposasl UNIT2) select 2)) then {
    
    hint format ["Unit1 is %1 \n Unit2 is %2", (getposasl UNIT1) select 2),(getposasl UNIT1) select 2)];
    };

    give it a shot, might need tweaking. Its late so I might not make much sense atm. Hope it helps anyway.


  9. i believe you need to have the rest of your script in the {} of the case.

    _pos = _this select 0;
    _sideofcamp = _this select 1;
    _side = toLower(_sideofcamp);
    switch (_side) do 
    {
    case "east": {_campSide = createCenter east; _grp = createGroup EAST;...rest of script..};
    case "west": {_campSide = createCenter west; _grp = createGroup WEST;...rest of script..};
    case "resistance": {_center = resistance;};
    default {_center = resistance;};
    };
    

    try that and if that does not work then make your script so that you specify side in arguments [West] execvm "yourscript.sqf"

    //yourscript.sqf
    _side = _this select 0;


  10. It has been a while but i have been busy updating Hard Fight (formerly Longest Day CO10) and now is using ACE.

    V2A

    Armaholic mirror:

    - Hard Fight Co-10 (@) v2-0-0A

    http://www.ghost.armaholic.eu/ARMAII/Hard_Fight_@ACE_CO10_V2A.Chernarus.pbo.7z

    Added save/equip loadout action to ammo box. Save your loadout once your all set then on respawn if you want your saved loadout go to ammo box and use "Equip Loadout". Weapon start script now selects primary weapon so player is able to fire without cycling firemode first. Tweaked POW rescue trigger so either pow can activate it. Changed ammobox script back to client side only - eliminates some publicvariables and less server load at start. Numerous other tweaks. Adjusted Enemy Infantry and Vehicle spawn scripts to be more random and easier to modify. Removed Raven Lifter addon requirement because it was added to ACE. This requires ACE,ACEX, CBA

    V4 No ACE

    Same as V2A ACE but this one does not require ACE

    http://www.ghost.armaholic.eu/ARMAII/Hard_Fight_CO10_V4.Chernarus.pbo.7z

    <<Thank You for Playing>>

    Please Let me know of any issues you may have and if you were running the mission from a dedicated or standalone server. I hope to get another rewrite as soon as I figure out some things but until then this should do just fine. Mission is designed to be different every time you play. Order of objectives and amount of enemy at each objective will be different.

    This mission is made for dedicated servers and has been tested with numerous people on a dedicated machine. Machine is not high end and neither was bandwidth but did get a mostly constant 30-50 fps depending on what was going on.

    Thanks to armaholic for another download link

    Armaholic Link

    >> Required Addons are (ACE,ACEX,CBA, RAVENS LIFTER)

×