FightWith

Category: Objects / Status
Since engine version: 4.9.1.0 GWE

Description

Starts a clonk-to-clonk fight. Using this command you can also make allied clonks fight. Both participants must be OCF_FightReady.

Syntax

bool FightWith (object pTarget, object pFighter);

Parameters

pTarget:
Object to be fought.
pFighter:
[opt] Object which is to start fighting. Can be 0 in local calls.

Example

FightWith(FindObject(0, -8,-10,16,20 OCF_FightReady()));
Fights another object close-by.
See also: OCF_FightReady, Punch
Sven2, Mai 2002