{"name":"setCamUseTI","operator":null,"title":"setCamUseTI","type":"command","url":"https://community.bistudio.com/wiki/setCamUseTI","revid":369156,"updated":"2024-09-03T10:34:40Z","groups":["Camera Control"],"status":"ok","replaced_by":[],"games":[{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"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).","syntaxes":[{"syntax":"state setCamUseTI modeIndex","since":null,"effect":null,"exec":null,"params":[{"name":"state","type":"Boolean","optional":false,"default":null,"description":"true to enable, false to disable the effect","types":["Boolean"],"since":null,"text":"state: Boolean - true to enable, false to disable the effect"},{"name":"modeIndex","type":"Number","optional":false,"default":null,"description":"TI mode. Can be:\n- 0 - White Hot\n- 1 - Black Hot\n- 2 - Light Green Hot / Darker Green cold\n- 3 - Black Hot / Darker Green cold\n- 4 - Light Red Hot /Darker Red Cold\n- 5 - Black Hot / Darker Red Cold\n- 6 - White Hot . Darker Red Cold\n- 7 - Thermal (Shade of Red and Green, Bodies are white)","types":["Number"],"since":null,"text":"modeIndex: Number - TI mode. Can be:\n- 0 - White Hot\n- 1 - Black Hot\n- 2 - Light Green Hot / Darker Green cold\n- 3 - Black Hot / Darker Green cold\n- 4 - Light Red Hot /Darker Red Cold\n- 5 - Black Hot / Darker Red Cold\n- 6 - White Hot . Darker Red Cold\n- 7 - Thermal (Shade of Red and Green, Bodies are white)"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"state","types":["Boolean"]},"right":{"text":"modeIndex","types":["Number"]}}],"examples":[{"text":"```sqf\ntrue setCamUseTI 1;\n```","code":["true setCamUseTI 1;"]},{"text":"*Predator* vision:\n\n```sqf\n_cam = \"camera\" camCreate [0, 0, 0];\n_cam camSetTarget player;\n_cam camSetRelPos [0, 1, 1.5];\n_cam cameraEffect [\"Internal\", \"Back\"];\n_cam camCommit 0;\ntrue setCamUseTI 7;\n```","code":["_cam = \"camera\" camCreate [0, 0, 0];\n_cam camSetTarget player;\n_cam camSetRelPos [0, 1, 1.5];\n_cam cameraEffect [\"Internal\", \"Back\"];\n_cam camCommit 0;\ntrue setCamUseTI 7;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["camUseNVG","disableTIEquipment"],"notes":[],"categories":["Arma 2: Operation Arrowhead: New Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 3: Scripting Commands","Command Group: Camera Control","Introduced with Arma 2: Operation Arrowhead version 1.50","Scripting Commands","Take On Helicopters: Scripting Commands"]}