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:
[optional] Object to be killed. Can be 0 in local calls.
fForced:
[optional] 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, March 2004