setDiarySubjectPicture: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Fix template usage)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| arma3dev
|game1= arma3dev


|2.03
|version1= 2.03


|gr1=  
|arg= global
|gr2= Briefing


| Sets a picture to be displayed on the right of the [[Diary]] subject. The picture can also be set during custom [[Diary]] subject [[createDiarySubject | creation]], but this command also allows to change icon for the fixed subjects, like "Tasks", "Diary", "Units", "Players" and "Statistics".
|eff= local


| person [[setDiarySubjectPicture]] [subject, picture]
|gr1= Briefing


|p1= person: [[Object]] - player
|descr= Sets a picture to be displayed on the right of the [[Diary]] subject. The picture can also be set during custom [[Diary]] subject [[createDiarySubject | creation]], but this command also allows to change icon for the fixed subjects, like "Tasks", "Diary", "Units", "Players" and "Statistics".
|p2= [subject, picture]: [[Array]]


|p3= subject: [[String]] - diary subject (see [[Diary]])
|s1= person [[setDiarySubjectPicture]] [subject, picture]
|p4= picture: [[String]] - icon path


| [[Nothing]]
|p1= person: [[Object]] - unit


|x1= <code>[[player]] [[setDiarySubjectPicture]] ["Diary", "\A3\ui_f\data\map\markers\nato\o_mech_inf.paa"];</code>
|p2= subject: [[String]] - diary subject (see [[Diary]])


| [[createDiarySubject]], [[diarySubjectExists]], [[Diary]]
|p3= picture: [[String]] - icon path


|
|r1= [[Nothing]]
}}


|x1= <code>[[player]] [[setDiarySubjectPicture]] ["Diary", "\A3\ui_f\data\map\markers\nato\o_mech_inf.paa"];</code>


 
|seealso= [[createDiarySubject]], [[diarySubjectExists]], [[Diary]]
{{GameCategory|arma3|Scripting Commands}}
}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Revision as of 13:43, 25 January 2021

-wrong parameter ("arma3dev") defined!-[[:Category:Introduced with arma3dev version 2.03|2.03]]
Hover & click on the images for description

Description

Description:
Sets a picture to be displayed on the right of the Diary subject. The picture can also be set during custom Diary subject creation, but this command also allows to change icon for the fixed subjects, like "Tasks", "Diary", "Units", "Players" and "Statistics".
Groups:
Briefing

Syntax

Syntax:
person setDiarySubjectPicture [subject, picture]
Parameters:
person: Object - unit
subject: String - diary subject (see Diary)
picture: String - icon path
Return Value:
Nothing

Examples

Example 1:
player setDiarySubjectPicture ["Diary", "\A3\ui_f\data\map\markers\nato\o_mech_inf.paa"];

Additional Information

See also:
createDiarySubjectdiarySubjectExistsDiary

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

[[Category:Introduced with arma3dev version 2.03]][[ Category: arma3dev: New Scripting Commands | SETDIARYSUBJECTPICTURE]][[ Category: arma3dev: Scripting Commands | SETDIARYSUBJECTPICTURE]]