HLEntity
Jump to navigation
Jump to search
This is the basic interface for entities
#include <boost/python.hpp>
namespace bp = boost::python;
BOOST_PYTHON_MODULE(HLEntity)
{
bp::class_<CBaseEntity, boost::noncopyable>("CBaseEntity", bp::no_init)
.def("IsAlive", &CBaseEntity::IsAlive)
.def("TeamNumber", &CBaseEntity::GetTeamNumber)
.def("GetId", &CBaseEntity::entindex);
}