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



Introduced in

Version:3.5

Description

Description:

Causes the given unit to lose consciousness temporarily.

Note: Has no effect on either the damage or the bloodLevel of the affected unit.

Syntax

Syntax:person setKnockout duration
Parameters:
  • person: Object - Unit to knock out.
  • duration: Number - Number of seconds the unit should stay unconscious. If set to 0, then unit wakes up again.
Return Value:Nothing

Examples

Examples:
soldier1 setKnockout 30;

Additional Information

See also: getKnockout, setBloodLevel
Multiplayer:
Problems:

Notes