cutText: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Killzone Kid (talk | contribs) (defaults) |
||
Line 17: | Line 17: | ||
|p2= text: [[String]] - text to be displayed |= Parameter 2 | |p2= text: [[String]] - text to be displayed |= Parameter 2 | ||
|p3= type: [[String]] one of "PLAIN", "PLAIN DOWN", "BLACK", "BLACK FADED", "BLACK OUT", "BLACK IN", "WHITE OUT" and "WHITE IN". See [[Title Effect Type]]s for more information about these values. |= Parameter 3 | |p3= type: [[String]] one of "PLAIN", "PLAIN DOWN", "BLACK", "BLACK FADED", "BLACK OUT", "BLACK IN", "WHITE OUT" and "WHITE IN". See [[Title Effect Type]]s for more information about these values. |= Parameter 3 | ||
|p4= speed: [[Number]] - Time in seconds to fade in resource | |p4= speed (Optional): [[Number]] - Time in seconds to fade in resource. Default: -1 |= Parameter 4 | ||
|p5= showOnMap: [[Boolean]] - [[false]] to hide the text when the map is opened (''Introduced in {{arma3}}'') | |p5= showOnMap (Optional): [[Boolean]] - [[false]] to hide the text when the map is opened. Default: [[true]] (''Introduced in {{arma3}}'') |= Parameter 5 | ||
| [[Nothing]] |= Return value | | [[Nothing]] |= Return value | ||
Line 26: | Line 26: | ||
|p23= text: [[String]] - text to be displayed |= Parameter 3 | |p23= text: [[String]] - text to be displayed |= Parameter 3 | ||
|p24= type: [[String]] one of "PLAIN", "PLAIN DOWN", "BLACK", "BLACK FADED", "BLACK OUT", "BLACK IN", "WHITE OUT" and "WHITE IN". See [[Title Effect Type]]s for more information about these values. |= Parameter 4 | |p24= type: [[String]] one of "PLAIN", "PLAIN DOWN", "BLACK", "BLACK FADED", "BLACK OUT", "BLACK IN", "WHITE OUT" and "WHITE IN". See [[Title Effect Type]]s for more information about these values. |= Parameter 4 | ||
|p25= speed: [[Number]] - Time in seconds to fade in resource | |p25= speed (Optional): [[Number]] - Time in seconds to fade in resource. Default: -1 |= Parameter 5 | ||
|p26= showOnMap: [[Boolean]] - [[false]] to hide the text when the map is opened (''Introduced in {{arma3}}'') | |p26= showOnMap (Optional): [[Boolean]] - [[false]] to hide the text when the map is opened. Default: [[true]] (''Introduced in {{arma3}}'') |= Parameter 6 | ||
|r2= [[Nothing]] |= Return value | |r2= [[Nothing]] |= Return value | ||
Line 35: | Line 35: | ||
|p43= text: [[String]] - text to be displayed |= Parameter 3 | |p43= text: [[String]] - text to be displayed |= Parameter 3 | ||
|p44= type: [[String]] one of "PLAIN", "PLAIN DOWN", "BLACK", "BLACK FADED", "BLACK OUT", "BLACK IN", "WHITE OUT" and "WHITE IN". See [[Title Effect Type]]s for more information about these values. |= Parameter 4 | |p44= type: [[String]] one of "PLAIN", "PLAIN DOWN", "BLACK", "BLACK FADED", "BLACK OUT", "BLACK IN", "WHITE OUT" and "WHITE IN". See [[Title Effect Type]]s for more information about these values. |= Parameter 4 | ||
|p45= speed: [[Number]] - Time in seconds to fade in resource | |p45= speed (Optional): [[Number]] - Time in seconds to fade in resource. Default: -1 |= Parameter 5 | ||
|p46= showOnMap: [[Boolean]] - [[false]] to hide the text when the map is opened (''Introduced in {{arma3}}'') | |p46= showOnMap (Optional): [[Boolean]] - [[false]] to hide the text when the map is opened. Default: [[true]] (''Introduced in {{arma3}}'') |= Parameter 6 | ||
|r3= [[Number]] - number of the allocated layer |= Return value | |r3= [[Number]] - number of the allocated layer |= Return value | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ |
Revision as of 10:54, 29 June 2017
Description
- Description:
- Displays a text message in the center of the screen. The text can be displayed on multiple lines by using "\n" new line characters:
cutText ["line1\nline2\nline3", "PLAIN"];
- Groups:
- Uncategorised
Syntax 1
- Syntax:
- cutText [text, type, speed, showOnMap]
- Parameters:
- [text, type, speed, showOnMap]: Array
- 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 (Optional): Number - Time in seconds to fade in resource. Default: -1
- showOnMap (Optional): Boolean - false to hide the text when the map is opened. Default: true (Introduced in Arma 3)
- Return Value:
- Nothing
Syntax 2
- Syntax:
- layer cutText [text, type, speed, showOnMap] (Introduced in Arma 2 / VBS2 (1.30+).)
- Parameters:
- layer: Number - layer number on which the effect is shown, where 0 is the back most. Layer number is rounded to the nearest integer and also cannot be negative. Layer 99.5 will be treated as layer 100.
- [text, type, speed, showOnMap]: Array
- 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 (Optional): Number - Time in seconds to fade in resource. Default: -1
- showOnMap (Optional): Boolean - false to hide the text when the map is opened. Default: true (Introduced in Arma 3)
- Return Value:
- Nothing
Syntax 3
- Syntax:
- layerName cutText [text, type, speed, showOnMap] (Since Arma 3 v1.57.134673)
- Parameters:
- layerName: String - layer name on which the effect is shown. Layer names are CaSe SeNsItIvE
- [text, type, speed, showOnMap]: Array
- 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 (Optional): Number - Time in seconds to fade in resource. Default: -1
- showOnMap (Optional): Boolean - false to hide the text when the map is opened. Default: true (Introduced in Arma 3)
- Return Value:
- Number - number of the allocated layer
Examples
- Example 1:
cutText ["","BLACK OUT"]; cutText ["Hello World!","PLAIN",2];
- Example 2:
2 cutText ["Hello World!","PLAIN",2];
- Example 3:
_layer1 = "normal" cutText ["In The Centre","PLAIN"]; _layer2 = "down" cutText ["At The Bottom","PLAIN DOWN"];
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
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
- Posted on July 6, 2016 - 13:32 (UTC)
- Krzmbrzl00
-
The value for speed has to be greater 0. If 0 is used as speed the default value (1) will be used.
If you want to create an "instant" effect you can use a really small value (e.g. 0.001)
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.00
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands: Local Effect
- Scripting Commands OFP 1.99
- Scripting Commands OFP 1.96
- Scripting Commands OFP 1.46
- Scripting Commands ArmA
- Command Group: Interaction
- Scripting Commands ArmA2
- Scripting Commands Arma 3
- Scripting Commands Take On Helicopters