there are a few other examples on ArmaHolic about Intel files citing the command RscAttributeDiaryRecord but no one realy breaks it down on how its used. not even on Bis's wiki
So my question is how would i use the RscAttributeDiaryRecord to an object spawned by a script i kinda got it working but it just pop's up a blank intel file on the map with none of the info on it.
i placed a trigger in the condition block i have
!alive OPFOR_Intel_File
and in the act i have it set to call the function. so when the player picks up the intel file they get the first hint of where the enemy fob is. it spawns another intel file in one of three places for the players to get more hints or updated intel.
so this is the function i created to handle spawning the intel files and creating triggers when the player is near
FNC_Tracking_OPFOR_FOB = {
if (!alive OPFOR_Intel_File) then {
hint "BLUFOR have found a OPFOR Intel File";
"FOB_OPFOR_1" setMarkerPos (getPos FOB_OPFOR);
OPFOR_Intel_File = ["Intel_File1_F" createVehicle getMarkerPos "OPFOR_Intel_File1_Marker",["OPFOR_Intel_File2_Marker","OPFOR_Intel_File3_Marker"], 0, "NONE"];
[OPFOR_Intel_File,"RscAttributeDiaryRecord",["Top Secret Docs","<br /><execute expression=""[(group player), 'my intel task', ['go to the enemy FOB and Destroy it', 'Intel secret docs', 'OPFOR FOB'], 'FOB_OPFOR_1', 'ASSIGNED', 0] call BIS_fnc_taskCreate"">These Docs outline the enemies FOB Location</execute><br />TO: General Atlia<br /><br />From: LT. Kouse<br /><br />Subject: Operations in Zones 1 and 2<br /><br />General our situation here is dire we have the USA forces to our North East. We need more reinforcements here.<br />We are currently locked in engagements with the 2nd Marine Division on the North Eastern border.<br />The battles are getting worse by the day but we will hold out till the last man.<br />We have built a <font color='#84e4ff'><marker name = 'FOB_OPFOR_1'>FOB</marker></font color> it will serve as our Launch point into Zones 1 and 2.<br />As a precaution I have stationed a platoon to guard the outpost so we can buy time for reinforcements.<br /><br />CSAT Command<br /><br />LT.Kouse Zone 1 Commanding officer.",""]] call bis_fnc_setServerVariable;
OPFOR_Intel_File setVariable ["RscAttributeDiaryRecord_texture","a3\structures_f_epc\Items\Documents\Data\document_secret_01_co.paa", true];
OPFOR_Intel_File setVariable ["recipients", WEST, true];
OPFOR_Flag_trg = createTrigger["EmptyDetector", (getPos FOB_OPFOR)];
OPFOR_Flag_trg setTriggerArea[50,50,0,false];
OPFOR_Flag_trg setTriggerActivation["WEST","PRESENT",true];
OPFOR_Flag_trg setTriggerStatements ["player in thisList", "hint 'OPFOR FOB Nearby'",""];
if (!alive OPFOR_Flag_trg) then {
OPFOR_Flag_trg = createTrigger["EmptyDetector", (getPos FOB_OPFOR)];
OPFOR_Flag_trg setTriggerArea[50,50,0,false];
OPFOR_Flag_trg setTriggerActivation["WEST","PRESENT",true];
OPFOR_Flag_trg setTriggerStatements ["player in thisList", "hint 'OPFOR FOB Nearby'",""];
};
sleep 5;
}
else {
if {alive OPFOR_Intel_File} then {
"FOB_OPFOR_1" setMarkerPos (getPos OPFOR_Base_Flag);
deleteVehicle OPFOR_Flag_trg;
};
};
};
in the init of the object i placed this (note this part has no problems its working the way i want it to)
[OPFOR_Intel_File,"RscAttributeDiaryRecord",["Top Secret Docs","<br /><execute expression=""[(group player), 'my intel task', ['go to the enemy FOB and Destroy it', 'Intel secret docs', 'OPFOR FOB'], 'FOB_OPFOR_1', 'ASSIGNED', 0] call BIS_fnc_taskCreate"">These Docs outline the enemies FOB Location</execute><br />TO: General Atlia<br /><br />From: LT. Kouse<br /><br />Subject: Operations in Zones 1 and 2<br /><br />General our situation here is dire we have the USA forces to our North East. We need more reinforcements here.<br />We are currently locked in engagements with the 2nd Marine Division on the North Eastern border.<br />The battles are getting worse by the day but we will hold out till the last man.<br />We have built a <font color='#84e4ff'><marker name = 'FOB_OPFOR_1'>FOB</marker></font color> it will serve as our Launch point into Zones 1 and 2.<br />As a precaution I have stationed a platoon to guard the outpost so we can buy time for reinforcements.<br /><br />CSAT Command<br /><br />LT.Kouse Zone 1 Commanding officer.",""]] call bis_fnc_setServerVariable;
OPFOR_Intel_File setVariable ["RscAttributeDiaryRecord_texture","a3\structures_f_epc\Items\Documents\Data\document_secret_01_co.paa", true];
OPFOR_Intel_File setVariable ["recipients", WEST, true];