setCamUseTI: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Fix)
(34 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma2oa |= Game name
|game1= arma2oa
|version1= 1.51


|1.51|= Game version
|game2= tkoh
____________________________________________________________________________________________
|version2= 1.00


| Activate camera thermal vision. |= Description
|game3= arma3
____________________________________________________________________________________________
|version3= 0.50


| Bool '''setCamUseTi''' mode index |= Syntax
|gr1= Camera Control


|p1= Bool: [[Boolean]] |=
|descr= Sets thermal vision mode for currently used camera. This command only works with [[camCreate]] created camera that is currently the main camera for the player (see Example 2).
|p2= mode index: [[Number]] |=


| [[Nothing]] |= Return value
|s1= state [[setCamUseTI]] modeIndex
____________________________________________________________________________________________


|x1= <code>true '''setCamUseTi''' 1; </code> |=
|p1= state: [[Boolean]] - [[true|True]] to enable, [[false]] to disable the effect
____________________________________________________________________________________________


| |= See also
|p2= modeIndex: [[Number]] - TI mode. Can be:
* 0 - White Hot
* 1 - Black Hot
* 2 - Light Green Hot / Darker Green cold
* 3 - Black Hot / Darker Green cold
* 4 - Light Red Hot /Darker Red Cold
* 5 - Black Hot / Darker Red Cold
* 6 - White Hot . Darker Red Cold
* 7 - Thermal (Shade of Red and Green, Bodies are white)


}}
|r1= [[Nothing]]


<h3 style="display:none">Notes</h3>
|x1= <code>[[true]] [[setCamUseTI]] 1;</code>
<dl class="command_description">
<!-- Note Section BEGIN -->
<dd class="notedate">Posted on  09:01, 2 October 2011</dd>
<dt class="note">'''[[User:Bashkire|Bashkire]]'''<dd class="note">
The number (in this case 0) defines what sort of thermal vision it is:
* 0 = White Hot
* 1 = Black Hot
* 2 = Light Green Hot / Darker Green cold
* 3 = Black Hot / Darker Green cold
* 4 = Light Red Hot /Darker Red Cold
* 5 = Black Hot / Darker Red Cold
* 6 = White Hot . Darker Red Col
* 7 = Thermal (Shade of Red and Green, Bodys are white)
<!-- Note Section END -->
</dl>


<h3 style="display:none">Bottom Section</h3>
|x2= ''Predator'' vision:<code>_cam = "camera" [[camCreate]] [0,0,0];
_cam [[camSetTarget]] [[player]];
_cam [[camSetRelPos]] [0,1,1.5];
_cam [[cameraEffect]] ["Internal","Back"];
_cam [[camCommit]] 0;
[[true]] [[setCamUseTI]] 7;</code>


[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
|seealso= [[camUseNVG]] [[disableTIEquipment]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
}}
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:ArmA 2 OA: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
[[Category:Command Group: Camera Control|setCamUseTi]]

Revision as of 16:24, 19 May 2021

Hover & click on the images for description

Description

Description:
Sets thermal vision mode for currently used camera. This command only works with camCreate created camera that is currently the main camera for the player (see Example 2).
Groups:
Camera Control

Syntax

Syntax:
state setCamUseTI modeIndex
Parameters:
state: Boolean - True to enable, false to disable the effect
modeIndex: Number - TI mode. Can be:
  • 0 - White Hot
  • 1 - Black Hot
  • 2 - Light Green Hot / Darker Green cold
  • 3 - Black Hot / Darker Green cold
  • 4 - Light Red Hot /Darker Red Cold
  • 5 - Black Hot / Darker Red Cold
  • 6 - White Hot . Darker Red Cold
  • 7 - Thermal (Shade of Red and Green, Bodies are white)
Return Value:
Nothing

Examples

Example 1:
true setCamUseTI 1;
Example 2:
Predator vision:_cam = "camera" camCreate [0,0,0]; _cam camSetTarget player; _cam camSetRelPos [0,1,1.5]; _cam cameraEffect ["Internal","Back"]; _cam camCommit 0; true setCamUseTI 7;

Additional Information

See also:
camUseNVG disableTIEquipment

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