DoBreath

Category: Objects / Living Beings
Since engine version: 4.6.5.0 CP

Description

Changes the breath value of an object.

Syntax

bool DoBreath (int iChange, object pObj);

Parameters

iChange:
Change of the breath value (positive or negative) in percent of the maximum value. 100% correspond to the maximum physical value 100,000.
pObj:
[opt] Object of which you want to change breath. Can be 0 in local calls.

Example

DoBreath(GetPhysical("Breath", 0, GetCursor(0))*50/100000, GetCursor(0));
Gives 50% more breath to the selected clonk of the first player.
See also: GetBreath
Sven2, November 2001