setVehicleTIPars: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(second arg is array)
m (Some wiki formatting)
(41 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


| Sets the "heat" state of different vehicle parts for Thermal Imaging detection. This allows simulation of heated up parts of a vehicle without it actually having to utilize them - on a range from 0 to 1, 0 being cold, 1 being hot.
|game3= arma3
{{Informative | This command does not work on infantry weapons.}} |DESCRIPTION=
|version3= 0.50
____________________________________________________________________________________________


| vehicle [[setVehicleTIPars]] [engine, wheels, weapon] |SYNTAX=
|arg= global


|p1= vehicle: [[Object]] - Vehicle whose components are manipulated |PARAMETER1=
|eff= local


|p2 = [engine, wheels, weapon]: [[Array]] |PARAMETER2=
|gr1= Object Manipulation


|p3= engine: [[Number]] - engine and body's heat |PARAMETER3=
|descr= Sets the "heat" state of different vehicle parts for Thermal Imaging detection.
This allows simulation of heated up parts of a vehicle without it actually having to utilize them - on a 0..1 range - 0 being cold, 1 being hot.
{{Feature|informative|This command does not work on infantry weapons.}}


|p4= wheels: [[Number]] - tracks/wheels' heat |PARAMETER4=
|s1= vehicle [[setVehicleTIPars]] [engine, wheels, weapon]


|p5= weapon: [[Number]] - main weapon's heat |PARAMETER5=
|p1= vehicle: [[Object]] - Vehicle whose components are manipulated


| [[Nothing]] |RETURNVALUE=
|p2= engine: [[Number]] - engine and body's heat
____________________________________________________________________________________________


|x1= <code>[[vehicle]] [[player]] [[setVehicleTIPars]] [1, 1, 1]; {{cc|set all parts hot}}
|p3= wheels: [[Number]] - tracks/wheels' heat
[[vehicle]] [[player]] [[setVehicleTIPars]] [0, 0, 0]; {{cc|set all parts cold}}
[[vehicle]] [[player]] [[setVehicleTIPars]] [0.5, 0.5, 0.5]; {{cc|set all parts warm}}
</code> |EXAMPLE 1=


|x2= <code>[[vehicle]] [[player]] [[setVehicleTIPars]] [1, 0, 0]; {{cc|set the engine warm, perfect for winter}}</code> |EXAMPLE 2=
|p4= weapon: [[Number]] - main weapon's heat
____________________________________________________________________________________________


|[[disableTIEquipment]], [[setCamUseTI]] |SEEALSO=
|r1= [[Nothing]]
}}


<h3 style="display:none">Notes</h3>
|x1= <sqf>
<dl class="command_description">
vehicle player setVehicleTIPars [1, 1, 1]; // set all parts hot
<!-- Note Section BEGIN -->
vehicle player setVehicleTIPars [0, 0, 0]; // set all parts cold
vehicle player setVehicleTIPars [0.5, 0.5, 0.5]; // set all parts warm
</sqf>


<!-- Note Section END -->
|x2= <sqf>vehicle player setVehicleTIPars [1, 0, 0]; // set the engine warm, perfect for winter</sqf>
</dl>


<h3 style="display:none">Bottom Section</h3>
|seealso= [[disableTIEquipment]] [[setCamUseTI]]
 
}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]

Revision as of 19:11, 15 August 2022

Hover & click on the images for description

Description

Description:
Sets the "heat" state of different vehicle parts for Thermal Imaging detection. This allows simulation of heated up parts of a vehicle without it actually having to utilize them - on a 0..1 range - 0 being cold, 1 being hot.
This command does not work on infantry weapons.
Groups:
Object Manipulation

Syntax

Syntax:
vehicle setVehicleTIPars [engine, wheels, weapon]
Parameters:
vehicle: Object - Vehicle whose components are manipulated
engine: Number - engine and body's heat
wheels: Number - tracks/wheels' heat
weapon: Number - main weapon's heat
Return Value:
Nothing

Examples

Example 1:
vehicle player setVehicleTIPars [1, 1, 1]; // set all parts hot vehicle player setVehicleTIPars [0, 0, 0]; // set all parts cold vehicle player setVehicleTIPars [0.5, 0.5, 0.5]; // set all parts warm
Example 2:
vehicle player setVehicleTIPars [1, 0, 0]; // set the engine warm, perfect for winter

Additional Information

See also:
disableTIEquipment setCamUseTI

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