HasSpawnFlag

From Valve Developer Community
Jump to: navigation, search

Returns a boolean value which can be used to check if an entity has a flag enabled in the source code.


Found in in baseentity.h

 bool		HasSpawnFlags( int nFlags ) const;


Usage

if ( HasSpawnFlags( SF_DOOR_SILENT )
{
  do....
}


See Also: Flag


--M4pster 01:06, 29 March 2012 (PDT)