TriggerVolume

Members

Member

Description

gameObject

transform

Methods

Method

Description

ActorIsInside(actor)

Returns true if actor is inside volume.

GetTeamCount(team)

Number of actors of team inside the volume.

PlayerIsInside()

Returns true if the player is inside volume.

PointIsInside(point)

Returns true if point is inside volume.

ToString()

Details

class TriggerVolume
const GameObject gameObject
const Transform transform
bool ActorIsInside(Actor actor)

Returns true if actor is inside volume. Uses cached actor values, so may not be up to date if trigger was recently moved.

int GetTeamCount(Team team)

Number of actors of team inside the volume. Uses cached actor values, so may not be up to date if trigger was recently moved.

bool PlayerIsInside()

Returns true if the player is inside volume. Uses cached actor values, so may not be up to date if trigger was recently moved.

bool PointIsInside(Vector3 point)

Returns true if point is inside volume. Always up to date!

string ToString()