BIS fnc dataTerminalColor: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - " |s1=[" to " |s1= [")
 
(29 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{RV|type=function


{{Function|= Comments
|game1= arma3
____________________________________________________________________________________________
|version1= 1.42


| arma3 |= Game name
|gr1= Scripts


|1.00|= Game version
|descr= Set Data Terminal colors for its different steps. Steps are:
____________________________________________________________________________________________
# closed terminal
# opening terminal
# emitting terminal.


| ''N/A'' |= Description
Default step colors are "blue", "orange", "green".
____________________________________________________________________________________________
See [[BIS_fnc_dataTerminalAnimate]] to animate a terminal.


| <!-- [] call [[BIS_fnc_DataTerminalColor]]; --> |= Syntax
|s1= [dataTerminal, step1color, step2color, step3color] call [[BIS_fnc_dataTerminalColor]]
|p1= |= Parameter 1


| |= Return value
|p1= dataTerminal: [[Object]]
____________________________________________________________________________________________


|x1= <code></code> |=  
|p2= step1color: [[String]] - step 1 color.  Can be one of:
____________________________________________________________________________________________
* "blue"
* "orange"
* "green"
* "red"
* "purple"


| |= See also
If not set, the selection color will simply not be changed.


}}
|p3= step2color: [[String]] - step 2 color


<h3 style="display:none">Notes</h3>
|p4= step3color: [[String]] - step 3 color
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|r1= [[Boolean]] - [[false]] if data terminal is null, [[true]] if the script ends properly
</dl>


<h3 style="display:none">Bottom Section</h3>
|x1= <sqf>[myTerminal, "purple", "red", "orange"] call BIS_fnc_dataTerminalColor;</sqf>
[[Category:Function Group: Scripts|{{uc:DataTerminalColor}}]]
[[Category:Functions|{{uc:DataTerminalColor}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:DataTerminalColor}}]]


I only know these three colors possible
|seealso= [[MP End Game|End Game (MP mode)]] [[BIS_fnc_dataTerminalAnimate]]
<br>
}}
nameOBJ = Is the name you give to the terminal
<br>
<code>
[nameOBJ,"red","red","red"] call BIS_fnc_DataTerminalColor; // Changes the colour to red
<br>
[nameOBJ,"green","green","green"] call BIS_fnc_DataTerminalColor; // Changes the colour to green
<br>
[nameOBJ,"blue","blue","blue"] call BIS_fnc_DataTerminalColor; // Changes the colour to blue
</code>

Latest revision as of 23:11, 12 July 2022

Hover & click on the images for description

Description

Description:
Set Data Terminal colors for its different steps. Steps are:
  1. closed terminal
  2. opening terminal
  3. emitting terminal.
Default step colors are "blue", "orange", "green". See BIS_fnc_dataTerminalAnimate to animate a terminal.
Execution:
call
Groups:
Scripts

Syntax

Syntax:
[dataTerminal, step1color, step2color, step3color] call BIS_fnc_dataTerminalColor
Parameters:
dataTerminal: Object
step1color: String - step 1 color. Can be one of:
  • "blue"
  • "orange"
  • "green"
  • "red"
  • "purple"
If not set, the selection color will simply not be changed.
step2color: String - step 2 color
step3color: String - step 3 color
Return Value:
Boolean - false if data terminal is null, true if the script ends properly

Examples

Example 1:
[myTerminal, "purple", "red", "orange"] call BIS_fnc_dataTerminalColor;

Additional Information

See also:
End Game (MP mode) BIS_fnc_dataTerminalAnimate

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