class TransportSourceSource
Transport › Pawn › EntityAI › Entity › ObjectTyped › Object › IEntity › Managed
Base class depends on build flags: PawnFEATURE_NETWORK_RECONCILIATION · EntityAI!FEATURE_NETWORK_RECONCILIATION
All members, including inherited
Uses NetworkMoveStrategy.NONE
Constructors 1
void Transport()Members 8
private static ref VehicleFlippedContext m_FlippedContextShared context across all vehicles for flipping
ref TIntArray m_SingleUseActionsref TIntArray m_ContinuousActionsref TIntArray m_InteractActionsprotected bool m_EngineZoneReceivedHitprotected vector m_fuelPosMethods 76
override int GetMeleeTargetType()protected override event typename GetOwnerStateType()protected override event typename GetMoveType()proto native void Synchronize()Synchronizes car's state in case the simulation is not running.
proto native int CrewSize()Returns crew capacity of this vehicle.
Returns crew member index based on action component index. -1 is returned when no crew position corresponds to given component index.
Returns crew member index based on player's instance. -1 is returned when the player is not isnide.
Returns crew member based on position index. Null can be returned if no Human is present on the given position.
Reads entry point and direction into vehicle on given position in model space.
Reads entry point and direction into vehicle on given position in world space.
Returns crew transformation indside vehicle in model space
Returns crew transformation indside vehicle in world space
Performs transfer of player from world into vehicle on given position.
Performs transfer of player from vehicle into world from given position.
proto native void CrewDeath(int posIdx)Handles death of player in vehicle and awakes its physics if needed
void OnDriverEnter(Human player)Is called when the crew member enters the driver seat
- in
player - The player that entered the driver seat
void OnDriverExit(Human player)Is called when the crew member leaves the driver seat
- in
player - The player that left the driver seat
proto native bool LightIsOn()Returns true when lights are on, false otherwise.
proto native void LightOn()Signals for LightIsOn to return true
proto native void LightOff()Signals for LightIsOn to return false
proto native void LightToggle()Calls LightOn/LightOff depending on current light state
bool OnBeforeLightOn()Is called by native every time the game wants to turn on the light
Returns: true if the light can turn on, false otherwise.
void OnUpdateLight()Is called by native every time the game wants to update the light
proto void ApplyForce(vector force)Applies constant force on the physics body (at origin).
proto void ApplyTorque(vector force)Applies constant torque on the physics body.
Applies constant force on the physics body at a position (world space coordinates).
proto void ApplyCentralImpulse(vector centralImpulse)Applies impulse on the physics body (at origin).
proto void ApplyTorqueImpulse(vector torqueImpulse)Applies impulse torque on the physics body.
Applies impulse on the physics body at a position (world space coordinates).
proto native int Random()Random number in range of <0,0xffffffff> - !!! use this only during deterministic simulation (EOnSimulate/EOnPostSimulate)
Returns: int value in range of <0,0xffffffff>
Random number in range of <0,pRange-1> - !!! use this only during deterministic simulation (EOnSimulate/EOnPostSimulate)
pRange- upper bounds of random number
Returns: int value in range of <0,pRange-1>
proto native float Random01()Random number in range of <0,1> - !!! use this only during deterministic simulation (EOnSimulate/EOnPostSimulate)
Returns: float value in range of <0,1>
Random number in range of <min,max> - !!! use this only during deterministic simulation (EOnSimulate/EOnPostSimulate)
Returns: float value in range of <min,max>
Is called every time when vehicle collides with other object.
- in
zoneName - configured vehicle's zone that was hit
- in
localPos - position where the vehicle was hit in vehicle's space
- in
other - object with which the vehicle is colliding
- in
data - contact properties
void OnInput(float dt)Called after every input simulation step.
Note that the player character and other systems can always change the internal state. It is highly recommended to store state of custom inputs elsewhere and call Setters here.
- in
dt - delta time since last called in seconds
void OnUpdate(float dt)Is called every game frame on client, fixed rate on server
- in
dt - delta time since last called in seconds
void UpdateLights(int new_gear = -1)override bool IsTransport()override bool IsIgnoredByConstruction()override bool IsHealthVisible()override bool ShowZonesHealth()override int GetHideIconMask()float GetMomentum()Show 3 more
, CarScript.EOnPostSimulate(), CarScript.GetDebugText(), and CarScript.OnContact()bool IsVitalSparkPlug()string GetVehicleType()string GetActionCompNameFuel()float GetActionDistanceFuel()vector GetRefillPointPosWS()protected VehicleFlippedContext GetFlipContext()Show 1 more
, m_FlippedContextprotected bool DetectFlippedUsingSurface(VehicleFlippedContext ctx, float angleTolerance)Show 14 more
, vector.Direction(), vector.Dot(), Object.GetDirectionUp(), CGame.GetSurface(), Object.GetTightlyPackedCorners(), CGame.GetWaterDepth(), VehicleFlippedContext.IsDebug(), vector.Normalize(), vector.Normalize(), Math.DEG2RAD, VehicleFlippedContext.m_SurfaceParams, VehicleFlippedContext.m_SurfaceResult, vector.Up, and vector.Zeroprotected bool DetectFlipped(VehicleFlippedContext ctx)bool IsFlipped()Don't override, may change to native for caching 'DetectFlipped' in the future based on active-ness (i.e. only updated when vehicle changes active state)
Show 1 more
, VehicleFlippedContext.m_bIsActionDon't override, may change to native for caching 'DetectFlipped' in the future based on active-ness (i.e. only updated when vehicle changes active state)
Show 1 more
, VehicleFlippedContext.m_bIsActionbool IsAnyCrewPresent()float GetTransportCameraDistance()void MarkCrewMemberUnconscious(int crewMemberIndex)void MarkCrewMemberDead(int crewMemberIndex)vector GetTransportCameraOffset()Show 1 more
, DayZPlayerImplement.CommandHandler()void SetEngineZoneReceivedHit(bool pState)Ignore any player that is currently in this vehicle
Show 1 more
, EEHitBy()bool HasEngineZoneReceivedHit()override void GetDebugActions(out TSelectableActionInfoArrayEx outputList)Show 3 more
, new TSelectableActionInfoWithColor(), FadeColors.LIGHT_GREY, and FadeColors.REDoverride bool OnAction(int action_id, Man player, ParamsReadContext ctx)bool IsAreaAtDoorFree(int currentSeat, float maxAllowedObjHeight, inout vector extents, out vector transform[4])Show 1 more
, DebugFreeAreaAtDoor()bool IsAreaAtDoorFree(int currentSeat, float maxAllowedObjHeight = 0.5, float horizontalExtents = 0.5, float playerHeight = 1.7)