Kill

Category: Objects / Living Beings
Since engine version: 4.9.1.0 GWE (extended in 4.9.5.0 CE)

Description

Kills an object. Applies to living beings only.

Syntax

bool Kill (object pObj, bool fForced);

Parameters

pObj:
[opt] Object to be killed. Can be 0 in local calls.
fForced:
[opt] If set, the object will be killed, even if an effect tries to prevent this. From CE.

Example

Kill(FindObject(0, 0,0,0,0, OCF_Alive()));
Kills a living being.
See also: Punch, RemoveObject
Sven2, November 2001, März 2004