Car¶
Members¶
Member |
Description |
---|---|
The radius of the vehicle’s specified avoidance size |
|
Returns true if there is a line of sight between the vehicle’s lock on point and the player camera |
|
Returns true if this vehicle is an Airplane. |
|
True while one or more target tracking weapons are locking onto this vehicle |
|
Returns true if this vehicle is a Boat. |
|
Returns true if this vehicle is a Car. |
|
Returns true if this vehicle is a Helicopter. |
|
True while one or more missiles are tracking this vehicle |
|
Returns true if vehicle is marked as a Turret. |
|
Methods¶
Method |
Description |
---|---|
Get the first available empty seat in the vehicle. |
|
Returns all missile projectiles that are currently tracking this vehicle. |
|
Repairs the vehicle by the specified health amount. |
|
Details¶
-
class
Car
¶ -
-
float
acceleration
¶
-
float
accelerationTipAmount
¶
-
float
airAngularDrag
¶
-
float
airDrag
¶
-
const float
avoidanceRadius
¶ The radius of the vehicle’s specified avoidance size
-
float
baseTurnTorque
¶
-
float
brakeAccelerationTriggerSpeed
¶
-
float
brakeDrag
¶
-
float
brakeDriftMinSpeed
¶
-
const bool
canSeePlayer
¶ Returns true if there is a line of sight between the vehicle’s lock on point and the player camera
-
float
downforcePerSpeed
¶
-
bool
driftByAcceleration
¶
-
bool
driftByBrake
¶
-
float
driftDuration
¶
-
float
driftingSlip
¶
-
float
extraStability
¶
-
float
frictionTipAmount
¶
-
const GameObject
gameObject
¶
-
float
groundAngularDrag
¶
-
float
groundDrag
¶
-
float
groundSteeringDrag
¶
-
const bool
hasCountermeasures
¶
-
const bool
hasDriver
¶
-
float
health
¶
-
bool
inReverseGear
¶
-
const bool
isAirplane
¶ Returns true if this vehicle is an Airplane. If true, you can safely access fields via the Airplane class API.
-
bool
isAmphibious
¶
-
const bool
isBeingLocked
¶ True while one or more target tracking weapons are locking onto this vehicle
-
const bool
isBoat
¶ Returns true if this vehicle is a Boat. If true, you can safely access fields via the Boat class API.
-
const bool
isBurning
¶
-
const bool
isCar
¶ Returns true if this vehicle is a Car. If true, you can safely access fields via the Car class API.
-
const bool
isDead
¶
-
const bool
isEmpty
¶
-
const bool
isFull
¶
-
const bool
isHelicopter
¶ Returns true if this vehicle is a Helicopter. If true, you can safely access fields via the Helicopter class API.
-
const bool
isInWater
¶
-
const bool
isTrackedByMissile
¶ True while one or more missiles are tracking this vehicle
-
const bool
isTurret
¶ Returns true if vehicle is marked as a Turret.
-
float
maxHealth
¶
-
const string
name
¶
-
const float
playerDistance
¶
-
const bool
playerIsInside
¶
-
float
reverseAcceleration
¶
-
float
slideDrag
¶
-
float
speedTurnTorque
¶
-
float
spotChanceMultiplier
¶
-
bool
tankTurning
¶
-
const int
team
¶
-
float
topSpeed
¶
-
array<TargetSeekingMissileProjectile>
GetTrackingMissiles
()¶ Returns all missile projectiles that are currently tracking this vehicle.
-
bool
IsChangingGears
()¶
-
bool
Repair
(float amount)¶ Repairs the vehicle by the specified health amount. Returns true if the vehicle was healed (that is, if it was not already at max health.)
-
string
ToString
()¶
-
float