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



Introduced in

Version:3.7

Description

Description:

Returns the associated effects class for the given wound.

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

Syntax

Syntax:wound call fn_vbs_aw_getWoundEffectsClass
Parameters:
  • wound: Wound - Wound array.
Return Value:Config-2 - Path to wound effect class.

Alternative Syntax

Syntax:[woundType, bodyPart] call fn_vbs_aw_getWoundEffectsClass
Parameters:
Return Value:Config-2 - Path to wound effect class.

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:

Specify wound array:

_config = [5,11,2,[-1,1.81236493587494],0,[]] call fn_vbs_aw_getWoundEffectsClass; // Projectile bleeding on left leg
// returns bin\config.cpp/CfgAdvancedWounds/Wounds/BleedProjectile/Effects/EffectsLimb

Specify wound type and body part:

_config = [configFile>>"CfgAdvancedWounds">>"Wounds">>"BleedCut","Torso"] call fn_vbs_aw_getWoundEffectsClass; // Wound configuration and body type

// Returns bin\config.cpp/CfgAdvancedWounds/Wounds/BleedCut/Effects/EffectsBody

_config = [2,4] call fn_vbs_aw_getWoundEffectsClass; // Wound ID (2:BleedCut) and body part (4:LeftArm) // Returns bin\config.cpp/CfgAdvancedWounds/Wounds/BleedCut/Effects/EffectsLimbs

_config = ["Burn","Head"] call fn_vbs_aw_getWoundEffectsClass; // Wound name and body part // Returns bin\config.cpp/CfgAdvancedWounds/Wounds/Burn/Effects/EffectsBody

Additional Information

See also: 
Multiplayer: 
Problems: 

Notes