VehicleSpawner
Members
Member |
Description |
---|---|
The vehicle that was last spawned by the spawner |
|
Has the last spawned vehicle been used? |
|
Methods
Method |
Description |
---|---|
Get the active vehicle prefab of this spawner. |
|
Returns true if the spawn is currently blocked. |
|
Force spawns the active vehicle type. |
|
Static methods
Method |
Description |
---|---|
Get the vehicle prefab for the specified team and type. |
|
Spawns a vehicle of the specified type |
Details
-
class VehicleSpawner
-
const GameObject gameObject
-
const bool lastSpawnedVehicleHasBeenUsed
Has the last spawned vehicle been used?
-
SpawnPoint parentSpawnPoint
-
const VehicleSpawnType spawnType
-
GameObject GetPrefab()
Get the active vehicle prefab of this spawner. Please note that the current value depends on which team owns the spawner’s parent spawn point.
-
bool SpawnIsBlocked()
Returns true if the spawn is currently blocked.
-
Vehicle SpawnNow()
Force spawns the active vehicle type. Does not check if the spawn area is clear or if the previous vehicle is still alive.
-
string ToString()
-
static GameObject GetPrefab(Team team, VehicleSpawnType type)
Get the vehicle prefab for the specified team and type.
-
static Vehicle SpawnVehicle(Team team, VehicleSpawnType type, Vector3 position, Quaternion rotation)
Spawns a vehicle of the specified type
-
const GameObject gameObject