Browse Source

Add `GetTeamColor()` method to `EPlayer`

pull/8/head
Anton Tarasenko 3 years ago
parent
commit
2b94a164b5
  1. 12
      sources/Players/EPlayer.uc

12
sources/Players/EPlayer.uc

@ -141,6 +141,18 @@ public function bool SameAs(EInterface other)
return (controller.Get() == otherController.Get()); return (controller.Get() == otherController.Get());
} }
/**
* Returns color of the caller `EPlayer`'s current team.
*
* Such color is supposed to be defined even for a single-team modes.
*
* @return `Color` structure with the `EPlayer`'s current color.
*/
public final function Color GetTeamColor()
{
return _.color.Red;
}
/** /**
* Returns location of the caller `EPlayer`. * Returns location of the caller `EPlayer`.
* *

Loading…
Cancel
Save