BIS fnc 3Dcredits: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Generated by BIS_fnc_exportFunctionsToWiki)
 
m (Text replacement - "<tt>([a-zA-Z0-9\. _"\\']+)<\/tt>" to "{{hl|$1}}")
(42 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{RV|type=function


{{Function|= Comments
|game1= arma2oa
____________________________________________________________________________________________
|version1= 1.56


| arma2oa |= Game name
|game2= tkoh
|version2= 1.00


|1.00|= Game version
|game3= arma3
____________________________________________________________________________________________
|version3= 0.50


| <pre>
|gr1= GUI
/*


Description:
|eff= local
3D credits.


Parameter(s):
|descr= Displays structured text in 3D world. GUI layer for indicator is {{hl|2733}}.
_this select 0: STRING - Text
_this select 1: ARRAY - Position in 3D world


Returns:
|s1= [text, position, minDis, fadeDis] spawn [[BIS_fnc_3Dcredits]]
True
*/
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_3Dcredits]]; --> |= Syntax
|p1= text: [[String]] with optional [[Structured Text]] formatting


|p1= |= Parameter 1
|p2= position: [[Array]] in format [[Position]]


| |= Return value
|p3= minDis: [[Number]] - (Optional, default 20) distance in which text is displayed
____________________________________________________________________________________________


|x1= <code></code> |=
|p4= fadeDis: [[Number]] - (Optional, default is 1.5) distance in which text starts fading again
____________________________________________________________________________________________


| |= See also
|r1= [[Nothing]]


}}
|x1= <code>["<t size='2'>Hello World</t>", [[getPos]] helloWorld, 15, 0] [[spawn]] [[BIS_fnc_3Dcredits]];</code>


<h3 style="display:none">Notes</h3>
|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>
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|seealso= [[Functions Library]]
</dl>


<h3 style="display:none">Bottom Section</h3>
|exec= spawn
[[Category:Function Group: GUI|{{uc:3Dcredits}}]]
}}
[[Category:Functions|{{uc:3Dcredits}}]]
[[Category:{{Name|arma2oa}}: Functions|{{uc:3Dcredits}}]]
[[Category:{{Name|tkoh}}: Functions|{{uc:3Dcredits}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:3Dcredits}}]]

Revision as of 00:55, 16 November 2021

Hover & click on the images for description

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: Number - (Optional, default 20) distance in which text is displayed
fadeDis: Number - (Optional, default is 1.5) distance in which text starts fading again
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