Administrator
Last active 6 years ago
Hi!
I have provided a sample init.sqf for you, with included documentation - In this example a side chat info is given, when an objective is reserved by side west! Open for better readability, but below i pasted whats inside.
http://s000.tinyupload.com/index.php?file_id=22219349752712892355
/////////////////////////////////////////////////////////////////////////////////////////////////// //Put in init.sqf //only use on an ALiVE mission with virtual AI module placed waituntil {!isnil "ALiVE_eventLog"}; //Leave alone _fnc_custom = { //Do not touch that params ["_logic","_operation","_args"]; //Also do not touch that switch (_operation) do { case "handleEvent": { _event = _args; _event params ["_id","_data"]; _id = [_event, "id"] call ALIVE_fnc_hashGet; _data = [_event, "data"] call ALIVE_fnc_hashGet; _data params ["_side","_objective"]; /////////////////////////////////////////////////////////////////////////// ///// ///// ///// //// This is the part you can put your code in ///// // // /* Example objective data from _objective call ALiVE_fnc_InspectHash; ---------------- Inspecting Hash -------------------- k [0]: objectiveID v: OPCOM_2390318919_objective_0 k [1]: center v: [23334.9,19291.6,0] k [2]: size v: 50 k [3]: objectiveType v: MIL k [4]: priority v: 50 k [5]: opcom_state v: idle k [6]: clusterID v: CUSTOM_42626 k [7]: opcomID v: 2390318919 k [8]: _rev v: k [9]: opcom_orders v: none k [10]: danger v: -1 k [11]: sectionAssist v: ["BLU_F-entity_12"] k [12]: section v: ["BLU_F-entity_12"] k [13]: tacom_state v: reserve ---------------- Inspection Complete -------------------- */ //Get objective id and position private _objectiveID = [_objective,"objectiveID","empty"] call ALiVE_fnc_hashGet; private _objectivePos = [_objective,"center",[]] call ALiVE_fnc_hashGet; //If objective is of side east ("GUER" for resistance) if (_side == "EAST") then { ["ALiVE - objective %1 reserved at position %2 side %3 - id %4!",_objectiveID,_objectivePos,_side,_id] call ALiVE_fnc_DumpR; }; //// /////////////////////////////////////////////////////////////////////////// }; }; }; //Register function _listener = [nil,"create"] call ALiVE_fnc_baseClass; _listener setVariable ["class",_fnc_custom]; //Will always fire the function above if one of the events below is fired //Possible values are: "OPCOM_RESERVE","OPCOM_RECON","OPCOM_CAPTURE","OPCOM_DEFEND","OPCOM_TERRORIZE" _listenerID = [ALiVE_eventLog,"addListener",[_listener, ["OPCOM_RESERVE"]]] call ALIVE_fnc_eventLog; // ///////////////////////////////////////////////////////////////////////////////////////////////////
enjoy
beautiful response and truly correct! let the Customer Support handle this!
fuck win10
joking! guess its just a different location! anyways the crash dumps wont help, we need the .rpt which is prolly in your users folder! or in arma root if you specifed a certail server profile
it works and has been done int the Sabotage mission! In this mission a custom objective is added to the enemy OPCOM whixh he then is attacking via trigger! Ill take a look at your specific case though!
oh - sry! AI did that by its own? can you try that without ALiVE (place some flying AI and some planes on ground) since im afraid its an A3 issue with laser targets!
Chernarus :)
thx - yeah
i have seen AI getting crazy on lasermarkers - make sure they are disabled on takeoff or another friendly jet or Chopper will bomb you!
Hi!
Thanks for the structured report! We can work with that!
Please check for the following:
with these information we can trace it down a lot easier!
Thanks
HH