setVehicleArmor: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(locality added, also example works comment deleted)
Line 5: Line 5:


|1.00|= Game version
|1.00|= Game version
|arg= local |= Arguments in MP
|eff= global |= Effects in MP
____________________________________________________________________________________________
____________________________________________________________________________________________


| Sets the armor (or health for men) state of the vehicle (a value from 0 to 1). |= 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''|= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 19: Line 26:
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <pre>player setVehicleArmor 0.5</pre> |= Example 1
|x1= <code>[[player]] [[setVehicleArmor]] 0.5;</code> |= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________


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


}}
}}
Line 29: Line 36:
<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->
Example 1 will not work. Should be:
vehicle player setVehicleArmor 0.5;


<!-- Note Section END -->
<!-- Note Section END -->

Revision as of 18:48, 9 September 2013

-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