BIS fnc dynamicText: Difference between revisions
Jump to navigation
Jump to search
m (template:command argument fix) |
m (template:command argument fix) |
||
Line 13: | Line 13: | ||
| [text, x, y, duration, fadeInTime, deltaY, rscLayer] spawn [[BIS_fnc_dynamicText]] |SYNTAX= | | [text, x, y, duration, fadeInTime, deltaY, rscLayer] spawn [[BIS_fnc_dynamicText]] |SYNTAX= | ||
|p1= text: [[String]] - text to display |= | |p1= text: [[String]] - text to display |PARAMETER1= | ||
|p2= x: [[Number]] - (Optional, default -1) X coordinates |= | |p2= x: [[Number]] - (Optional, default -1) X coordinates |PARAMETER2= | ||
|p3= y: [[Number]] - (Optional, default -1) Y coordinates) |= | |p3= y: [[Number]] - (Optional, default -1) Y coordinates) |PARAMETER3= | ||
|p4= duration: [[Number]] - (Optional, default 4) display duration |= | |p4= duration: [[Number]] - (Optional, default 4) display duration |PARAMETER4= | ||
|p5= fadeInTime: [[Number]] - (Optional, default 1) fade-in time |= | |p5= fadeInTime: [[Number]] - (Optional, default 1) fade-in time |PARAMETER5= | ||
|p6= deltaY: [[Number]] - (Optional, default 0) Y position delta: | |p6= deltaY: [[Number]] - (Optional, default 0) Y position delta: | ||
Line 27: | Line 27: | ||
* > 0: Text will move down | * > 0: Text will move down | ||
* < 0: Text will move up | * < 0: Text will move up | ||
''duration'' and the absolute ''deltaY'' value will influence the movement speed. |= | ''duration'' and the absolute ''deltaY'' value will influence the movement speed. |PARAMETER6= | ||
|p7= rscLayer: [[Number]] - (Optional, default) resource layer |= | |p7= rscLayer: [[Number]] - (Optional, default) resource layer |PARAMETER7= | ||
| [[Nothing]] |RETURNVALUE= | | [[Nothing]] |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>["<t color='#ff0000' size = '.8'>Warning!<nowiki><br /></nowiki>Stop doing what you are doing</t>",-1,-1,4,1,0,789] spawn [[BIS_fnc_dynamicText]];</code> |= | |x1= <code>["<t color='#ff0000' size = '.8'>Warning!<nowiki><br /></nowiki>Stop doing what you are doing</t>",-1,-1,4,1,0,789] spawn [[BIS_fnc_dynamicText]];</code> |EXAMPLE1= | ||
|exec= spawn |= Execution | |exec= spawn |= Execution |
Revision as of 14:29, 7 April 2019
Description
- Description:
- Shows dynamic opening credits or any type of text.
- Execution:
- spawn
- Groups:
- Uncategorised
Syntax
- Syntax:
- [text, x, y, duration, fadeInTime, deltaY, rscLayer] spawn BIS_fnc_dynamicText
- Parameters:
- text: String - text to display
- x: Number - (Optional, default -1) X coordinates
- y: Number - (Optional, default -1) Y coordinates)
- duration: Number - (Optional, default 4) display duration
- fadeInTime: Number - (Optional, default 1) fade-in time
- deltaY: Number - (Optional, default 0) Y position delta:
- = 0: Text will not move
- > 0: Text will move down
- < 0: Text will move up
- rscLayer: Number - (Optional, default) resource layer
- Return Value:
- Nothing
Examples
- Example 1:
["<t color='#ff0000' size = '.8'>Warning!<br />Stop doing what you are doing</t>",-1,-1,4,1,0,789] spawn BIS_fnc_dynamicText;
Additional Information
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