setCamUseTI: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]3(\|.*)\]\]" to "{{GameCategory|arma3|Scripting Commands}}")
m (Text replacement - "<sqf>([^↵][^\/]*↵[^\/]*)<\/sqf>" to "<sqf> $1 </sqf>")
 
(31 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma2oa |Game name=
|game1= arma2oa
|version1= 1.50


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


|gr1 = Camera Control |GROUP1=
|game3= arma3
____________________________________________________________________________________________
|version3= 0.50


| Activates thermal vision. Mode index defines what sort of thermal vision it is:<br>
|gr1= Camera Control
 
|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).
 
|s1= state [[setCamUseTI]] modeIndex
 
|p1= state: [[Boolean]] - [[true]] to enable, [[false]] to disable the effect
 
|p2= modeIndex: [[Number]] - TI mode. Can be:
* 0 - White Hot
* 0 - White Hot
* 1 - Black Hot
* 1 - Black Hot
Line 17: Line 26:
* 5 - Black Hot / Darker Red Cold
* 5 - Black Hot / Darker Red Cold
* 6 - White Hot . Darker Red Cold
* 6 - White Hot . Darker Red Cold
* 7 - Thermal (Shade of Red and Green, Bodies are white) <br>
* 7 - Thermal (Shade of Red and Green, Bodies are white)
This command only works with [[camCreate]] created camera that is currently the main camera for the player (see example).|DESCRIPTION=
____________________________________________________________________________________________


| Bool '''setCamUseTI''' modeIndex |SYNTAX=
|r1= [[Nothing]]


|p1= Bool: [[Boolean]] - enable/disable the effect|Parameter1=
|x1= <sqf>true setCamUseTI 1;</sqf>


|p2= modeIndex: [[Number]] - Ti mode|Parameter2=
|x2= ''Predator'' vision:
 
<sqf>
| [[Nothing]] |RETURNVALUE=
_cam = "camera" camCreate [0, 0, 0];
____________________________________________________________________________________________
_cam camSetTarget player;
 
_cam camSetRelPos [0, 1, 1.5];
|x1= <code>[[true]] [[setCamUseTI]] 1;</code> |Example1=
_cam cameraEffect ["Internal", "Back"];
 
_cam camCommit 0;
|x2= "Predator" vision:<code>_cam = "camera" [[camCreate]] [0,0,0];
true setCamUseTI 7;
_cam [[camSetTarget]] [[player]];
</sqf>
_cam [[camSetRelPos]] [0,1,1.5];
_cam [[cameraEffect]] ["Internal","Back"];
_cam [[camCommit]] 0;
[[true]] [[setCamUseTI]] 7;</code> |=
____________________________________________________________________________________________
 
| [[camUseNVG]], [[disableTIEquipment]] |SEEALSO=


|seealso= [[camUseNVG]] [[disableTIEquipment]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
{{GameCategory|arma3|Scripting Commands}}
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Arma 2: Operation Arrowhead: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]

Latest revision as of 11:34, 3 September 2024

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