setVehicleArmor: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(locality added, also example works comment deleted)
m (template:command argument fix)
Line 14: Line 14:
| 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''|= Description
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''|DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


|  vehicleName '''setVehicleArmor''' value |= Syntax
|  vehicleName '''setVehicleArmor''' value |SYNTAX=


|p1= vehicleName: [[Object]] |= Parameter 1
|p1= vehicleName: [[Object]] |PARAMETER1=


|p2= value: [[Number]] range 0 to 1 |= Parameter 2
|p2= value: [[Number]] range 0 to 1 |PARAMETER2=


| [[Nothing]] |= Return value
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code>[[player]] [[setVehicleArmor]] 0.5;</code> |= Example 1
|x1= <code>[[player]] [[setVehicleArmor]] 0.5;</code> |EXAMPLE1=
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[setDamage]] |= See also
| [[setDamage]] |SEEALSO=


}}
}}

Revision as of 14:48, 7 April 2019

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

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:
Uncategorised

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

Notes

Bottom Section