GetOCF
Category: Objects
/ OCF
Since engine version: 4.6.5.0 CP
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 BitAnd().
Syntax
int GetOCF
(object pObj);
Parameter
- pObj:
Object of which to determine the OCF. Can be 0 in local calls.
Example
/* Wird bei Schäden aufgerufen */
protected func Damage()
{
// Brennt?
if(GetOCF() & OCF_OnFire())
// Freuen
Message("Juhu! Ich brenne!", this());
return(1);
}
Masochist
wipfmetz, August 2002