createDiaryRecord: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 43: Line 43:
<dl class='command_description'>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->
 
I haven't seen this mentioned elsewhere: In order to insert a link into a diary record that executes code instead of jumping to a marker, use the tag
<execute expression="''Code to execute''">Text</execute>
<!-- Note Section END -->
<!-- Note Section END -->
</dl>
</dl>

Revision as of 16:54, 15 January 2011

Hover & click on the images for description

Description

Description:
creates a diary entry. You can set up some html, like :
  • <br /> - insert a linebreak
  • <marker name="markername">link</marker> - place a link to a marker
  • <img image="picture.paa" /> - put an image.
Groups:
Uncategorised

Syntax

Syntax:
unitName createDiaryRecord parameters
Parameters:
unitName: Object
parameters: Array.
can be [subject, text(, task(, state))]
or [subject, [title, text](, task(, state))]
Return Value:
text: String

Examples

Example 1:
player createDiaryRecord ["Diary", ["My title", "Informations gathered"]]
Example 2:
player createDiaryRecord ["Diary", "Informations gathered"]

Additional Information

See also:
createDiarySubject

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

Notes

I haven't seen this mentioned elsewhere: In order to insert a link into a diary record that executes code instead of jumping to a marker, use the tag <execute expression="Code to execute">Text</execute>

Bottom Section