ActorManager¶
Static members¶
Member |
Description |
---|---|
|
|
|
|
|
|
|
Get the player actor. |
|
|
|
All currently spawned vehicles |
Static methods¶
Method |
Description |
---|---|
Returns true if the two actors have direct line of sight to each other. |
|
Returns the distance between two actors. |
|
Create a new AI Actor on the specified team. |
|
Triggers an explosion. |
|
Get an AI Actor available for spawning on the specified team. |
|
Returns the team skin of the specified team. |
|
Returns true if all actors on the team are dead. |
|
Assume control over the target Actor. |
|
Sets the team skin of all actors on the specified team. |
|
Details¶
-
class
ActorManager
¶ -
static const array<Actor> actors
-
static const array<CapturePoint> capturePoints
-
static const array<Ladder> ladders
-
static const Actor
player
¶ Get the player actor. This is the same as using
Player.actor
-
static const array<SpawnPoint> spawnPoints
-
static const array<Vehicle> vehicles
All currently spawned vehicles
-
static bool
ActorsCanSeeEachOther
(Actor a, Actor b)¶ Returns true if the two actors have direct line of sight to each other. Please note that only checks between actors of different teams are precalculated and fast. Using this method on actors of the same team is slower.
-
static float
ActorsDistance
(Actor a, Actor b)¶ Returns the distance between two actors. Please note that only checks between actors of different teams are precalculated and fast. Using this method on actors of the same team is slower. If the value is not available, returns -1.
-
static Actor
CreateAIActor
(Team team)¶ Create a new AI Actor on the specified team. Use
Actor.SpawnAt(...)
to spawn the actor in the world.
-
static bool
Explode
(ExplosionInfo info)¶ Triggers an explosion. Returns true if anything (Actor/Vehicle) was damaged.
-
static array<CapturePoint>
GetCapturePointsOwnedByTeam
(Team team)¶
-
static Actor
GetSpawnableAIActor
(Team team)¶ Get an AI Actor available for spawning on the specified team. Use
Actor.SpawnAt(...)
to spawn the actor in the world. If all ai actors on the team are alive, a new one will be created and returned.
-
static array<SpawnPoint>
GetSpawnPointsOwnedByTeam
(Team team)¶
-
static void
PlayerTakeOverBot
(Actor actor)¶ Assume control over the target Actor. If the Player already controls a player actor, the player actor is first silently killed. The bot actor is also silently killed.
-
static SpawnPoint
RandomEnemySpawnPoint
(Team team)¶
-
static SpawnPoint
RandomFrontlineSpawnPointForTeam
(Team team)¶
-
static SpawnPoint
RandomSpawnPoint
()¶
-
static SpawnPoint
RandomSpawnPointForTeam
(Team team)¶
-