createDiarySubject: Difference between revisions
| Lou Montana (talk | contribs) m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ |()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}") |  (page formatting) | ||
| Line 1: | Line 1: | ||
| {{RV|type=command | {{RV|type=command | ||
| | arma2 | |game1= arma2 | ||
| | | |version1= 1.00 | ||
| |game2= arma2oa | |||
| |version2= 1.51 | |||
| | | |game3= tkoh | ||
| |  | |version3= 1.00 | ||
| |  | |game4= arma3 | ||
| | | |version4= 0.50 | ||
| | | |gr1= Briefing | ||
| | | |eff= local | ||
| | | |descr= Creates a new subject in the [[Diary]]. | ||
| | | |s1= player '''createDiarySubject''' [subject, displayName, picture] | ||
| | [[ | |p1= player: [[Object]] | ||
| | | |p2= subject: [[String]] | ||
| | | |p3= displayName: [[String]] - The visible name | ||
| |p4= picture: [[String]] - (optional, default {{ic|""}}) Icon to display next to the subject. Can be set later with [[setDiarySubjectPicture]]. Similar to [[lbSetPictureRight]]. | |||
| |r1= [[Number]] - Index of the entry that was added | |||
| |x1= <code>_index = [[player]] [[createDiarySubject]] ["myPage","My page"];</code> | |||
| [[ | |||
| |seealso= [[removeDiarySubject]] [[processDiaryLink]] [[createDiaryLink]] [[createDiaryRecord]] [[diarySubjectExists]] [[setDiarySubjectPicture]] [[allDiarySubjects]] | |||
| }} | |||
Revision as of 10:24, 4 March 2021
Description
Syntax
- Syntax:
- player createDiarySubject [subject, displayName, picture]
- Parameters:
- player: Object
- subject: String
- displayName: String - The visible name
- picture: String - (optional, default "") Icon to display next to the subject. Can be set later with setDiarySubjectPicture. Similar to lbSetPictureRight.
- Return Value:
- Number - Index of the entry that was added
Examples
- Example 1:
- _index = player createDiarySubject ["myPage","My page"];
Additional Information
- See also:
- removeDiarySubject processDiaryLink createDiaryLink createDiaryRecord diarySubjectExists setDiarySubjectPicture allDiarySubjects
Notes
- 
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
 Only post proven facts here! Add Note
 
	


