C4D_Goal

Category: Objects / Category
Since engine version: 4.6.5.0 CP

Description

Object category: game goal

Syntax

int C4D_Goal ();

Remark

This value is also defined as a constant. Thus the parameter brackets can be omitted.

Example

var obj;
while (obj=FindObject(0, 0,0,0,0, 0, 0,0, 0, obj))
  if (GetCategory(obj) & C4D_Goal)
    RemoveObject(obj);
Removes all game goals.
See also: GetCategory, SetCategory
Sven2, Januar 2002