ScarDoc

Start typing to search the SCAR reference.

Function
Util

Util_GetRelationship

Gets the relationship between two of: entity, squad, egroup, sgroup, player. for groups, the first item is used. returns R_ENEMY, R_ALLY, R_NEUTRAL, R_UNDEFINED, or nil (if world owned or invalid parameters)

On this page
Util_GetRelationship(Object_1, Object_2)

Description

Gets the relationship between two of: entity, squad, egroup, sgroup, player. for groups, the first item is used. returns R_ENEMY, R_ALLY, R_NEUTRAL, R_UNDEFINED, or nil (if world owned or invalid parameters)

Parameters

  • Object_1entity/squad/egroup/sgroup/playerrequired
  • Object_2entity/squad/egroup/sgroup/playerrequired

Returns

Relationship

Source

Declared in the game's script sources at:

scar/scarutil.scar