cutText: Difference between revisions
Jump to navigation
Jump to search
m (effect -> eff to match template) |
m (upd. links) |
||
Line 14: | Line 14: | ||
| '''cutText''' [text,type,speed] |= Syntax | | '''cutText''' [text,type,speed] |= Syntax | ||
|p1= text: [[String]] - text to be displayed |= Parameter 1 | |p1= text: [[String]] - text to be displayed |= Parameter 1 | ||
|p2= type: [[String]] one of "PLAIN", "PLAIN DOWN", "BLACK", "BLACK FADED", "BLACK OUT", "BLACK IN", "WHITE OUT" and "WHITE IN". See [[ | |p2= 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 2 | ||
|p3= speed: [[Number]] - Time in seconds to fade in resource (optional, default: 1) |= Parameter 3 | |p3= speed: [[Number]] - Time in seconds to fade in resource (optional, default: 1) |= Parameter 3 | ||
| [[Nothing]] |= Return value | | [[Nothing]] |= Return value | ||
Line 21: | Line 21: | ||
|p21= layer: [[Number]] - Defines the layer in which the effect is shown, where 0 is the backmost one. |= Parameter 1 | |p21= layer: [[Number]] - Defines the layer in which the effect is shown, where 0 is the backmost one. |= Parameter 1 | ||
|p22= text: [[String]] - text to be displayed |= Parameter 2 | |p22= text: [[String]] - text to be displayed |= Parameter 2 | ||
|p23= type: [[String]] one of "PLAIN", "PLAIN DOWN", "BLACK", "BLACK FADED", "BLACK OUT", "BLACK IN", "WHITE OUT" and "WHITE IN". See [[ | |p23= 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 | ||
|p24= speed: [[Number]] - Time in seconds to fade in resource (optional, default: 1) |= Parameter 4 | |p24= speed: [[Number]] - Time in seconds to fade in resource (optional, default: 1) |= Parameter 4 | ||
|r2= [[Nothing]] |= Return value | |r2= [[Nothing]] |= Return value |
Revision as of 00:54, 25 November 2009
Description
- Description:
- Displays a text message in the center of the screen.
- Groups:
- Uncategorised
Syntax
- Syntax:
- cutText [text,type,speed]
- 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)
- Return Value:
- Nothing
Alternative Syntax
- Syntax:
- layer cutText [text,type,speed] (Only available in Arma 2 or 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)
- Return Value:
- Nothing
Examples
- Example 1:
cutText ["","BLACK OUT"] cutText ["Hello World!","PLAIN",2]
- Example 2:
2 cutText ["Hello World!","PLAIN",2];
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
Bottom Section
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.96
- Scripting Commands OFP 1.46
- Scripting Commands ArmA
- Command Group: Interaction
- Scripting Commands ArmA2