Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:3.7

Description

Description:

Checks whether a wound has received a specific treatment.

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

Note: After successful treatment (using the Advanced Injury interface) the wound may not exist anymore, so it may be impossible to check for its treatment.

Syntax

Syntax:[wound, treatment] call fn_vbs_aw_woundWasTreated
Parameters:
Return Value:Boolean - If true, then the specified treatment has been applied.

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:Check whether any of the existing wounds have been treated by elevating the limb:
_treated = false;
{
  if ([_x,6] call fn_vbs_aw_woundWasTreated) exitWith { // Treatment #6 == elevate limb
    _treated = true;
  };
}forEach ([soldier1] call fn_vbs_aw_getWounds);

Additional Information

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

Notes