ScriptEvent:getEntityAllegiance

From Mod Wiki

Parameters

entity entity -- Entity to compare with.

Result

integer

Supported By

idEntity

Comments

  • The result will be TA_FRIEND, TA_NEUTRAL, or TA_ENEMY

Functionality

Returns a value indicating the relationship between the team of this entity and the team of the specified entity.