cutText: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 28: Line 28:
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <pre>cutText ["","BLACK OUT"]
|x1= <code>[[cutText]] ["","BLACK OUT"];
cutText ["Hello World!","PLAIN",2]</pre> |= Example 1
[[cutText]] ["Hello World!","PLAIN",2];</code> |= Example 1


|x2= <pre>2 cutText ["Hello World!","PLAIN",2];</pre> |= Example 2
|x2= <code>2 [[cutText]] ["Hello World!","PLAIN",2];</code> |= Example 2
 
|x3= <code>1000 [[cutText]] ["In The Centre","PLAIN"];
1001 [[cutText]] ["At The Bottom","PLAIN DOWN"];</code> |= Example 3
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 08:33, 20 September 2013

Hover & click on the images for description

Description

Description:
Displays a text message in the center of the screen.
Groups:
Uncategorised

Syntax

Syntax:
cutText [text,type,speed,showOnMap]
Parameters:
text: String - text to be displayed
type: String one of "PLAIN", "PLAIN DOWN", "BLACK", "BLACK FADED", "BLACK OUT", "BLACK IN", "WHITE OUT" and "WHITE IN". See Title Effect Types for more information about these values.
speed: Number - Time in seconds to fade in resource (optional, default: 1)
showOnMap: Boolean - false to hide the text when the map is opened (Introduced in Arma 3).
Return Value:
Nothing

Alternative Syntax

Syntax:
layer cutText [text,type,speed,showOnMap] (Introduced in Arma 2 / VBS2 (1.30+).)
Parameters:
layer: Number - Defines the layer in which the effect is shown, where 0 is the backmost one.
text: String - text to be displayed
type: String one of "PLAIN", "PLAIN DOWN", "BLACK", "BLACK FADED", "BLACK OUT", "BLACK IN", "WHITE OUT" and "WHITE IN". See Title Effect Types for more information about these values.
speed: Number - Time in seconds to fade in resource (optional, default: 1)
showOnMap: Boolean - false to hide the text when the map is opened (Introduced in Arma 3).
Return Value:
Nothing

Examples

Example 1:
cutText ["","BLACK OUT"]; cutText ["Hello World!","PLAIN",2];
Example 2:
2 cutText ["Hello World!","PLAIN",2];
Example 3:
1000 cutText ["In The Centre","PLAIN"]; 1001 cutText ["At The Bottom","PLAIN DOWN"];

Additional Information

See also:
titleTextcutRsccutObj

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

Posted on September 20, 2013 - 06:59
Killzone_Kid
In Arma 3 "PLAIN" param will display your text where the crosshair is, "PLAIN DOWN" will push the text further down, closer to the bottom of the screen.

Bottom Section