setVehicleArmor: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3> " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma1 | | arma1 | ||
|1.00 | |1.00 | ||
|arg= local | |arg= local | ||
|eff= global | |eff= global | ||
|gr1= Object Manipulation | |gr1= Object Manipulation | ||
| Sets the armor (or health for men) state of the vehicle (a value from 0 to 1). | | Sets the armor (or health for men) state of the vehicle (a value from 0 to 1). | ||
Works like [[setDamage]] only in reverse: ''player setVehicleArmor 1'' is the same as ''player setDamage 0'', and ''player setVehicleArmor 0'' is the same as ''player setDamage 0.97'' | Works like [[setDamage]] only in reverse: ''player setVehicleArmor 1'' is the same as ''player setDamage 0'', and ''player setVehicleArmor 0'' is the same as ''player setDamage 0.97'' | ||
| vehicleName '''setVehicleArmor''' value | | vehicleName '''setVehicleArmor''' value | ||
|p1= vehicleName: [[Object]] | |p1= vehicleName: [[Object]] | ||
|p2= value: [[Number]] range 0 to 1 | |p2= value: [[Number]] range 0 to 1 | ||
| [[Nothing]] | | [[Nothing]] | ||
|x1= <code>[[player]] [[setVehicleArmor]] 0.5;</code> | |x1= <code>[[player]] [[setVehicleArmor]] 0.5;</code> | ||
| [[setDamage]] | | [[setDamage]] | ||
}} | }} |
Revision as of 11:11, 18 January 2021
Description
- Description:
- Sets the armor (or health for men) state of the vehicle (a value from 0 to 1). Works like setDamage only in reverse: player setVehicleArmor 1 is the same as player setDamage 0, and player setVehicleArmor 0 is the same as player setDamage 0.97
- Groups:
- Object Manipulation
Syntax
- Syntax:
- vehicleName setVehicleArmor value
- Parameters:
- vehicleName: Object
- value: Number range 0 to 1
- Return Value:
- Nothing
Examples
- Example 1:
player setVehicleArmor 0.5;
Additional Information
- See also:
- setDamage
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
Categories:
- Scripting Commands
- Introduced with Armed Assault version 1.00
- ArmA: Armed Assault: New Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Command Group: Object Manipulation
- Scripting Commands: Global Effect
- Operation Flashpoint: Elite: Scripting Commands
- Arma 2: Scripting Commands
- Arma 3: Scripting Commands
- Take On Helicopters: Scripting Commands