Questions related to Entities.

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


Replies (1)

RE: Questions related to Entities. - Added by Nepherkaan over 8 years ago

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)