User Tools

Site Tools


eliteapi:functions:player:hastrait

HasTrait

Determines if the player has the given trait by its id.

ELITEAPI_API bool __stdcall HasTrait(void* apiObject, unsigned int id);

Parameters

  • apiObject [in]
    • A handle to an EliteAPI object.
  • id [in]
    • The id of the trait to lookup.

Return Value

True if the player has the trait, false otherwise.

eliteapi/functions/player/hastrait.txt · Last modified: 2014/12/08 02:28 (external edit)