Page 1 of 1

Get entity from entity id[SOLVED]

Posted: Sat Feb 24, 2018 12:20 pm
by tinkertrain
Hi,

Is there any way to get the entity itself from the entity id, like you can do with an owning component like this:

Code: Select all

CPlayerComponent *player; player->GetEntity()->...
Thanks!

Re: Get entity from entity id.

Posted: Sat Feb 24, 2018 1:40 pm
by zeph

Code: Select all

gEnv->pEntitySystem->GetEntity(id);

Re: Get entity from entity id.

Posted: Sat Feb 24, 2018 8:09 pm
by tinkertrain
Thanks!