Jump to content
  • Topics

  • Posts

    • Holy smokes, event handlers... of course. It was one of those situations where you stare at the same code/script for 2 days and it just melts your brain and you forget about simple things. Thanks for the wake up pierremgi! Still not working though. I have the set up like yours as I agree that an EH is better for the goal, but it still changes all units whenever an entity is created. Should I use _x setVariable on them somehow? Although I tried that many ways already with no luck   inint.sqf private _mapUnits = allUnits select {!isPlayer _x}; {[_x] call CB_fnc_factionConfig;} forEach _mapUnits; uiSleep 1; addMissionEventHandler ["EntityCreated", { params ["_entity"]; if (_entity isKindOf "CAManBase") then {[_entity] call CB_fnc_factionConfig;}; }];   When I spawn a unit(s) every one of them gets the function applied again, except player and dead bodies. How would I exclude these units? fn_factionConfig.sqf // handles private _unit = _this select 0; if (isPlayer _unit) exitWith {}; // all get naked removeAllWeapons _unit; removeAllItems _unit; removeAllAssignedItems _unit; removeUniform _unit; removeVest _unit; removeBackpack _unit; removeHeadgear _unit; removeGoggles _unit; _unit unlinkItem hmd _unit; /* Factions can be one of the following West: "BLU_F" (NATO), "BLU_G_F" (FIA), "BLU_CTRG_F" (NATO CTRG), BLU_GEN_F (POLICE) East: "OPF_F" (CSAT), "OPF_G_F" (FIA), "OPF_T_F" (CSAT Tanoa) Guer: "IND_F" (AAF), "IND_G_F" (FIA), "IND_C_F" (SYNDIKAT Tanoa) Civ: "CIV_F" (Civilians) */ { if (faction _x isEqualTo 'BLU_F' && _x IsKindof 'Man') then {[_x] execVM 'scripts\loadouts\BLUFOR\NATO.sqf';} else {if (faction _x isEqualTo 'BLU_F') then {{[_x] execVM 'scripts\loadouts\BLUFOR\NATO.sqf'} forEach crew _x};}; } forEach allUnits; Im thinking I need to add these into some exclusion array that I could use instead of allUnits at the end but I am not sure of how. 
    • Nitpick central here but I just noticed that the LDF version of the AH-11F actually had the same denomination as the WY-55.
      i.e. : for NATO AH-11F is "Hellcat" vs AAF WY-55 "Wildcat" but for the LDF both AH-11F and WY-55 are "Czapla".

      Maybe find it another polish bird name ?     Also on the topic of the Air Control, I was a bit unlucky and got nicked by two/three 20mm rounds in the first day, of course I was like "well my chopper is fine" (as I didn't seem to have taken any damage to any critical area) but apparently the hit still managed severed the fuel tank (it was still showing white aka low damage) and I was forced to emergency land near Galati. And frankly once I did that, I was legit out of fuel and without a clue as to what I should be doing... what should I have done ?
    • Thanks, but after some mucking around, no luck Maybe they will get enough complaints and fix it. Then again I should submit a ticket for it though.
    • Since the Arma 3 AI pilots tend to flare more than RuPaul when landing, even when in stealth mode, I decided to use unitCapture and unitPlay for the insertion in one of my scenarios.   After a very smooth, low-approach landing by me, if I may say so 😊, I kept the recording of me touching ground going for about 5-6 seconds before ending it.   When the recording is over, I want to pass control back to the AI and have him fly away after every player inside has disembarked. This has proven difficult to achieve.   Setup:   heli1 is its variable My heli has this setFuel 0; this flyInHeight 0; in its init field to 100% prevent engine start in MP It has a Hold waypoint in front of it as its first waypoint  A Skip Waypoint trigger is set as Waypoint Activation UnitPlay is triggered when all playable units present in the scenario are inside the heli via  (AI is disabled in description.ext) this setFuel 1; is part of the trigger to have engine turned on when AI is supposed to take over. flyInHeight is still 0; pilot disableAI "ALL" in pilot's init field   Methods attempted:   Place a second Hold waypoint close to where the heli lands in unitPlay A Skip Waypoint trigger is set as Waypoint Activation { _x in heli1 } count allPlayers == 0 in Condition field pilot enableAI "ALL" in On Act field in second Hold waypoint trigger. Next waypoint is MOVE, then LAND for AI to land back at the ship. Attached an invisible helipad to the heli I tried using a Land waypoint as the second waypoint, as I had a helipad close to where I landed in unitPlay that the AI pilot insisted on landing on after assuming control again when testing  
    • We will see. Or to say with it Kozlowski's words: "Yeah, right. I've heard that before..." 🙂
×