Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.



Introduced in

Version:3.7

Description

Description:Returns all bleeding wounds for a unit.

Requires the Advanced Wounding Editor Object to be present in the mission.

Syntax

Syntax:[unit, bodypart] call fn_vbs_aw_getBleedingWounds
Parameters:
  • unit: Object - Soldier to check.
  • bodypart: String or Number - Name or ID of Wound to check. If -1 or an a non-existent body part name is passed, then all wounds are returned (optional, default: -1).
Return Value:Array of Wound

Warning

When using functions in VBS versions older than 3.4, certain limitations and requirements should be kept in mind - the main ones being that capitalization of the function name is crucial, and that #include "\vbs2\headers\function_library.hpp" has to be included in every script that utilizes it. More Category VBS Scripting Functions.

Examples

Examples:
_wounds = [player] call fn_vbs_aw_getBleedingWounds;           // Check all wounds 
_wounds = [player,2] call fn_vbs_aw_getBleedingWounds;         // Check left leg (using index)
_wounds = [player,"leftleg"] call fn_vbs_aw_getBleedingWounds; // Check left leg (using string)

Additional Information

See also: fn vbs aw getWounds, fn vbs aw hasWound
Multiplayer: 
Problems: 

Notes