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



Introduced in

Version:3.5

Description

Description:

Defines the bleeding rate for a person.

A unit loses consciousness when its bloodLevel reaches 60%, and dies at 50%.

The durations specified in the command are based on an initial blood level of 100%. If the starting blood level is less, then the actual time until unconsciousness or death are reduced proportionally.

To stop any bleeding, call the command with an empty array: soldier1 setBleeding []

Syntax

Syntax:person setBleeding [unconscious, dead]
Parameters:
  • person: Object - Affected person.
  • unconscious: Number - Seconds until unit loses consciousness.
  • dead: Number - Seconds until unit dies (after losing consciousness).
Return Value:Nothing

Examples

Examples:
soldier1 loses consciousness after 30 seconds, and dies 15 seconds later:
soldier1 setBleeding [30, 15];

Additional Information

See also: bleeding, bloodLevel, setBloodLevel, fn vbs aw addWound
Multiplayer:
Problems:

Notes