GetOCF

Category: Objects / OCF
Since engine version: 1.0 OC

Description

Returns the Object Character Flag of an object. This value describes the current state of an object. The return value is a bit mask and can be compared with OCF_x values using &.

Syntax

int GetOCF();

Example

protected func Damage()
{
	// object is burning?
	if(GetOCF() & OCF_OnFire)
		Message("Jippie, I am burning!");
}		
				
Masochist
wipfmetz, 2002-08