BIS fnc 3Dcredits: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| arma2oa | | arma2oa | ||
|1.56 | |1.56 | ||
|gr1= GUI | |gr1= GUI | ||
|arg= |MPARGUMENTS= | |arg= |MPARGUMENTS= | ||
Line 13: | Line 13: | ||
| Displays structured text in 3D world. | | Displays structured text in 3D world. | ||
<br> | <br> | ||
GUI layer for indicator is <tt>2733</tt>. | GUI layer for indicator is <tt>2733</tt>. | ||
| [text, position, ''minDis'', ''fadeDis''] spawn [[BIS_fnc_3Dcredits]] | | [text, position, ''minDis'', ''fadeDis''] spawn [[BIS_fnc_3Dcredits]] | ||
|p1= text: [[String]] with optional [[Structured_Text|Structured Text]] formatting | |p1= text: [[String]] with optional [[Structured_Text|Structured Text]] formatting | ||
|p2= position: [[Array]] in format [[Position]] | |p2= position: [[Array]] in format [[Position]] | ||
|p3= minDis ''(Optional)'': [[Number]] - distance in which text is displayed (default is 20) | |p3= minDis ''(Optional)'': [[Number]] - distance in which text is displayed (default is 20) | ||
|p4= fadeDis ''(Optional)'': [[Number]] - distance in which text starts fading again (default is 1.5) | |p4= fadeDis ''(Optional)'': [[Number]] - distance in which text starts fading again (default is 1.5) | ||
| [[Nothing]] | | [[Nothing]] | ||
|x1= <code>["<t size='2'>Hello World</t>", [[getPos]] helloWorld, 15, 0] [[spawn]] [[BIS_fnc_3Dcredits]];</code> | |x1= <code>["<t size='2'>Hello World</t>", [[getPos]] helloWorld, 15, 0] [[spawn]] [[BIS_fnc_3Dcredits]];</code> | ||
|x2= <code>["<img size='2' image='img\myImage.paa'/><nowiki><br /></nowiki>Some text on the second line", [[getPos]] someObject] [[spawn]] [[BIS_fnc_3Dcredits]];</code> | |x2= <code>["<img size='2' image='img\myImage.paa'/><nowiki><br /></nowiki>Some text on the second line", [[getPos]] someObject] [[spawn]] [[BIS_fnc_3Dcredits]];</code> | ||
| [[Functions Library]] | | [[Functions Library]] | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= |
Revision as of 22:07, 17 January 2021
Description
- Description:
- Displays structured text in 3D world.
GUI layer for indicator is 2733. - Execution:
- spawn
- Groups:
- GUI
Syntax
- Syntax:
- [text, position, minDis, fadeDis] spawn BIS_fnc_3Dcredits
- Parameters:
- text: String with optional Structured Text formatting
- position: Array in format Position
- minDis (Optional): Number - distance in which text is displayed (default is 20)
- fadeDis (Optional): Number - distance in which text starts fading again (default is 1.5)
- Return Value:
- Nothing
Examples
- Example 1:
["<t size='2'>Hello World</t>", getPos helloWorld, 15, 0] spawn BIS_fnc_3Dcredits;
- Example 2:
["<img size='2' image='img\myImage.paa'/><br />Some text on the second line", getPos someObject] spawn BIS_fnc_3Dcredits;
Additional Information
- See also:
- Functions Library
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