BIS_fnc_moduleDamage

From Bohemia Interactive Community
Jump to navigation Jump to search
Introduced with Arma 3 version 1.00
  

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
1.00

Description

Description:
Damage given vehicles.
Regarding locality: if a hitpoint is defined,
Arguments of this scripting command have to be local to the client the command is executed on setHitPointDamage is used. Else,
Arguments of this scripting command don't have to be local to the client the command is executed on setDamage is used.

Syntax

Syntax:
[logic, vehicles, isActivated] call BIS_fnc_moduleDamage
Parameters:
logic: Object - the logic. Possible setVariable parameter:
  • "value": Number - (Optional, default 0) wanted damage, in range 0..1
  • "bodypart": String - (Optional, default "0") setHitPointDamage hitpoint name
vehicles: Array of Objects - list of vehicles
isActivated: Boolean - (Optional, default true) if true, the fuel is set
Return Value:
Boolean - true when done, even if isActivated equals false

Examples

Example 1:
[myLogic, vehicle player, true] call BIS_fnc_moduleDamage;

Additional Information

Execution:
call
Multiplayer:
-
See also:
setDamagesetHitPointDamage

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section