Questions related to Entities.
Replies (1)
(1-1/1)
Added by Nepherkaan over 8 years ago
Hi all,
I want to use the entities list to detect if an outpost is near the player.
Few questions :
   1° Does the entities list contains outposts ?
   2° How to detect that an entity is an outpost ?
If someone has the answer... :)
Thx
Greg
I've found I think.
bool CEntityCL::isOutpostBuilding() {
    CEntitySheet *sheet = SheetMngr.get( _SheetId );
    if (sheet == NULL) return false;
    return (sheet->Type == CEntitySheet::OUTPOST_BUILDING);
}
(1-1/1)