allDiaryRecords: Difference between revisions

From Bohemia Interactive Community
m (Text replacement - "\|branch= *dev " to "")
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 17: Line 17:
|p2= subject: [[String]] - subject
|p2= subject: [[String]] - subject


|r1= [[Array]] - all diary records for the given subject in the following format: [id, title, text, icon, task, taskState, showTitle, date, record], where:
|r1= [[Array]] with [id, title, text, icon, task, taskState, showTitle, date, record]
* id: [[Number]] - record id
* id: [[Number]] - record id
* title: [[String]] - record title
* title: [[String]] - record title
Line 25: Line 25:
* taskState: [[String]] - record task state
* taskState: [[String]] - record task state
* showTitle: [[Boolean]] - [[true]] if tile is shown
* showTitle: [[Boolean]] - [[true]] if tile is shown
* date: [[Array]] - [[date]] in format [year, month, day, hour, minute, second]  
* date: [[Date]]
* record: [[Diary Record]] - record reference
* record: [[Diary Record]] - record reference



Latest revision as of 11:01, 2 January 2026

Hover & click on the images for description

Description

Description:
Returns array with all Diary Records for the given subject available to the given person. See Diary for the explanation on the available subjects and their structure.
Groups:
Briefing

Syntax

Syntax:
person allDiaryRecords subject
Parameters:
person: Object - unit
subject: String - subject
Return Value:
Array with [id, title, text, icon, task, taskState, showTitle, date, record]

Examples

Example 1:
player allDiaryRecords "Diary";

Additional Information

See also:
allDiarySubjects createDiaryRecord setDiaryRecordText Diary

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note