Skip to main content

PlayerCharacterTarget

A class in Root.Township, Alta.Intelligence.

The Target for a player, on the player prefab, so creatures can sense, chase and attack players. Its position is the head and its ground position the feet.

Constructors​

MemberWhat it is
PlayerCharacterTarget()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

1 private and internal field
MemberWhat it is
private PlayerController characterBacking field for Character.

Properties​

MemberWhat it is
PlayerController Character { get; }The player's PlayerController.
override Vector3 GroundPosition { get; }The player's real feet position.
override bool IsAlive { get; }True while the player is alive and not a spirit.
override Vector3 Position { get; }The player's head position.

Methods​

MemberWhat it is
override IEnumerable<AttackParameters> Attacks() (iterator)The current attack of every impact generator on the tools the player holds, so creatures can react to incoming swings.