selectDiarySubject
- Local argument
- Local effect
- Arma 3 v0.50
- First in Arma 2 v1.00
Command · Markdown · JSON · original wiki page
Description
Selects a subject page in the diary. The subject page is selected but the command does not open the map by default, which could be opened with openMap if necessary.
Syntax
player selectDiarySubject subject
Parameters:
-
player: Object - player -
subject: String - subject name, for example "Diary" (see also Diary).Note
In order to open a specific record inside a subject one can append
Record#to the subject name.player selectDiarySubject "Diary:Record0"; // selects the first record in the diary subject (from bottom to top) player selectDiarySubject "Diary:Record1"; // selects the second record
Returns: Boolean - true if subject was successfully selected
Examples
Example 1
openMap true;
player selectDiarySubject "Diary";
See also
processDiaryLink · createDiaryLink · createDiarySubject · diarySubjectExists · allDiarySubjects