setVehicleArmor: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \{\{GameCategory *\| *arma1 *\| *(New )?Scripting Commands\}\}" to "") |
Lou Montana (talk | contribs) m (Text replacement - "\| *(arg|eff|mp|serverExec|gr[0-9]) *= *(.*) * *\|([^=0-9]{12})" to "|$1=$2 |descr=$3") |
||
Line 12: | Line 12: | ||
|gr1= Object Manipulation | |gr1= Object Manipulation | ||
| Sets the armor (or health for men) state of the vehicle (a value from 0 to 1). | |descr= 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'' |
Revision as of 21:20, 13 June 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