REDNODE / GAME API

VehicleComponentPS

classscriptedClasssavable

extends ScriptableDeviceComponentPS › SharedGameplayPS › DeviceComponentPS › GameComponentPS › PersistentState › IScriptable › ISerializable

Properties 37

NameTypeFlags
anyDoorOpenBoolscriptedprotectedpersistent
controlStimRunningBoolscriptedprivate
controlStimShouldBeActiveBoolscriptedprivate
crystalDomeQuestModifiedBoolscriptedprotectedpersistent
crystalDomeQuestStateBoolscriptedprotectedpersistent
crystalDomeStateBoolscriptedprotectedpersistent
customMappingamedataMappinVariantscriptedprotectedpersistent
defaultStateSetBoolscriptedprotectedpersistent
explodedBoolscriptedprotectedpersistent
hornEnabledBoolscriptedprotectedpersistent
isDefaultLightToggleSetBoolscriptedprotectedpersistent
isDestroyedBoolscriptedprotectedpersistent
isPlayerPerformingBodyDisposalBoolscriptedpublic
isStolenBoolscriptedprotectedpersistent
npcOccupiedSlotsarray<CName>scriptedprotected
playerVehicleBoolscriptedprotectedpersistent
previousInteractionStatearray<TemporaryDoorState>scriptedprotectedpersistent
readyBoolscriptedpublic
shouldForceExitDelamainBoolscriptedpublic
sirenLightsOnBoolscriptedprotectedpersistent
sirenOnBoolscriptedprotectedpersistent
sirenSoundOnBoolscriptedprotectedpersistent
stateModifiedByQuestBoolscriptedprotectedpersistent
submergedBoolscriptedprotectedpersistent
submergedTimestampFloatscriptedpublic
thrusterStateBoolscriptedprotectedpersistent
uiQuestModifiedBoolscriptedprotectedpersistent
uiStateBoolscriptedprotectedpersistent
vehicleAppearanceCustomizationBlockedByDamageBoolscriptedprotectedpersistent
vehicleApperanceCustomizationActiveBoolscriptedprotectedpersistent
vehicleApperanceCustomizationInDistanceTerminationBoolscriptedprotectedpersistent
vehicleApperanceDefinitionvehicleVisualModdingDefinitionscriptedprotectedpersistent
vehicleControllerPSref<vehicleControllerPS>scriptedprivate
vehicleSkillChecksref<EngDemoContainer>scriptedprotected
vehicleVisualCustomizationTemplateSavedVehicleVisualCustomizationTemplatescriptedprotectedpersistent
visualDestructionNeededBoolscriptedprotectedpersistent
visualDestructionSetBoolscriptedprotectedpersistent

Methods 177

private final func ActionCloseHood() -> ref<VehicleCloseHood>scripted
private final func ActionCloseTrunk() -> ref<VehicleCloseTrunk>scripted
private final func ActionForceCarAlarm() -> ref<ForceCarAlarm>scripted
private final func ActionForceDisableCarAlarm() -> ref<ForceDisableCarAlarm>scripted
private final func ActionOpenHood() -> ref<VehicleOpenHood>scripted
private final func ActionOpenTrunk() -> ref<VehicleOpenTrunk>scripted
private final func ActionPlayerTrunk() -> ref<VehiclePlayerTrunk>scripted
private final func ActionToggleVehicle(toggleOn: Bool) -> ref<ToggleVehicle>scripted
private final func ActionVehicleDoorClose(slotName: script_ref<String>) -> ref<VehicleDoorClose>scripted
private final func ActionVehicleDoorInteraction(slotName: script_ref<String>, opt fromInteraction: Bool, opt locked: Bool) -> ref<VehicleDoorInteraction>scripted
private final func ActionVehicleDoorInteractionStateChange(doorToChange: EVehicleDoor, desiredState: VehicleDoorInteractionState, source: script_ref<String>) -> ref<VehicleDoorInteractionStateChange>scripted
private final func ActionVehicleDoorOpen(slotName: script_ref<String>) -> ref<VehicleDoorOpen>scripted
private final func ActionVehicleDoorQuestLocked() -> ref<VehicleQuestDoorLocked>scripted
private final func ActionVehicleDumpBody() -> ref<VehicleDumpBody>scripted
private final func ActionVehicleForceOccupantOut(slotName: script_ref<String>) -> ref<VehicleForceOccupantOut>scripted
private final func ActionVehicleTakeBody() -> ref<VehicleTakeBody>scripted
protected const func CanCreateAnyQuickHackActions() -> Boolscripted
protected final func ChangeToActionContext(vehicleContext: script_ref<VehicleActionsContext>) -> GetActionsContextscripted
private final func CheckVehicleVelocityForStims()scripted
private final func CloseAllVehDoors(forceScene: Bool)scripted
private final func CloseAllVehWindows()scripted
public final func DetermineActionsToPush(interaction: ref<InteractionComponent>, context: VehicleActionsContext, objectActionsCallbackController: wref<gameObjectActionsCallbackController>, isAutoRefresh: Bool)scripted
public final func DisableAlarm()scripted
private final func DisableAllVehInteractions()scripted
public final func EndStimsOnVehicleQuickhack()scripted
public final func EndVehicleStimsOnVehicleQuickhack()scripted
protected func GameAttached()scripted
public func GetActions(out outActions: array<ref<DeviceAction>>, context: GetActionsContext) -> Boolscripted
public final func GetCrystalDomeQuestState() -> Boolscripted
public final func GetCrystalDomeState() -> Boolscripted
public final func GetCustomMappin() -> gamedataMappinVariantscripted
public final func GetDoorInteractionState(door: EVehicleDoor) -> VehicleDoorInteractionStatescripted
public final func GetDoorState(door: EVehicleDoor) -> VehicleDoorStatescripted
public final func GetHasAnyDoorOpen() -> Boolscripted
public final func GetHasDefaultStateBeenSet() -> Boolscripted
public final func GetHasExploded() -> Boolscripted
public final func GetHasStateBeenModifiedByQuest() -> Boolscripted
public final func GetHasVisualDestructionBeenSet() -> Boolscripted
public final func GetHoodActions(actions: script_ref<array<ref<DeviceAction>>>, context: script_ref<VehicleActionsContext>)scripted
public final func GetIsCrystalDomeQuestModified() -> Boolscripted
public final func GetIsDefaultLightToggleSet() -> Boolscripted
public final func GetIsDestroyed() -> Boolscripted
public final func GetIsPlayerVehicle() -> Boolscripted
public final func GetIsStolen() -> Boolscripted
public final func GetIsSubmerged() -> Boolscripted
public final func GetIsUiQuestModified() -> Boolscripted
public final func GetIsVehicleApperanceCustomizationInDistanceTermination() -> Boolscripted
public final func GetIsVehicleVisualCustomizationActive() -> Boolscripted
public final func GetIsVehicleVisualCustomizationBlockedByDamage() -> Boolscripted
public final func GetNpcOccupiedSlots() -> array<CName>scripted
protected final const func GetOwnerEntity() -> wref<VehicleObject>scripted
public final func GetPlayerTrunkActions(actions: script_ref<array<ref<DeviceAction>>>, context: script_ref<VehicleActionsContext>)scripted
public final func GetQuestLockedActions(actions: script_ref<array<ref<DeviceAction>>>, context: script_ref<VehicleActionsContext>)scripted
protected func GetQuickHackActions(out outActions: array<ref<DeviceAction>>, context: script_ref<GetActionsContext>)scripted
protected final func GetSeats() -> array<wref<VehicleSeat_Record>>scripted
public final func GetSirenLightsState() -> Boolscripted
public final func GetSirenSoundsState() -> Boolscripted
public final func GetSirenState() -> Boolscripted
public final func GetSubmergedTimestamp() -> Floatscripted
public final const func GetTempDoorInteractionState(door: EVehicleDoor) -> VehicleDoorInteractionStatescripted
public final func GetThrusterState() -> Boolscripted
public final func GetTrunkActions(actions: script_ref<array<ref<DeviceAction>>>, context: script_ref<VehicleActionsContext>)scripted
public final func GetUiQuestState() -> Boolscripted
public final func GetValidChoices(objectActionRecords: script_ref<array<wref<ObjectAction_Record>>>, context: script_ref<GetActionsContext>, objectActionsCallbackController: wref<gameObjectActionsCallbackController>, choices: script_ref<array<InteractionChoice>>, isAutoRefresh: Bool)scripted
private final func GetVehicleControllerPS() -> ref<vehicleControllerPS>scripted
private final const func GetVehicleControllerPSConst() -> ref<vehicleControllerPS>scripted
public final func GetVehicleDoorEnum(out door: EVehicleDoor, doorName: CName) -> Boolscripted
public final func GetVehicleVisualCustomizationTemplate() -> VehicleVisualCustomizationTemplatescripted
public final func GetWindowState(door: EVehicleDoor) -> EVehicleWindowStatescripted
public final func HasCustomMappin() -> Boolscripted
protected func Initialize()scripted
private final func InitializeDoorInteractionState()scripted
private final func InitializeTempDoorStateStruct()scripted
protected final func IsDoorLayer(layer: CName) -> Boolscripted
public final const func IsHornEnabled() -> Boolscripted
public final func IsPlayerCarryingBody(includePickupPhase: Bool) -> Boolscripted
public final func IsPlayerSwimming() -> Boolscripted
public final const func IsSlotOccupiedByNPC(slotID: CName) -> Boolscripted
public final func IsStateValidForVehicle(state: VehicleDoorInteractionState) -> Boolscripted
private final func LockAllVehDoors()scripted
public func OnActionDemolition(evt: ref<ActionDemolition>) -> EntityNotificationTypescripted
public func OnActionEngineering(evt: ref<ActionEngineering>) -> EntityNotificationTypescripted
public final func OnCheckVehicleVelocityForStimsEvent(evt: ref<CheckVehicleVelocityForStimsEvent>) -> EntityNotificationTypescripted
public final func OnCloseHood(evt: ref<VehicleCloseHood>) -> EntityNotificationTypescripted
public final func OnCloseTrunk(evt: ref<VehicleCloseTrunk>) -> EntityNotificationTypescripted
public final func OnForceCarAlarm(evt: ref<ForceCarAlarm>) -> EntityNotificationTypescripted
public final func OnForceDisableCarAlarm(evt: ref<ForceDisableCarAlarm>) -> EntityNotificationTypescripted
public final func OnForceExitDelamainEvent(evt: ref<ForceExitDelamainEvent>) -> EntityNotificationTypescripted
public final func OnOpenHood(evt: ref<VehicleOpenHood>) -> EntityNotificationTypescripted
public final func OnOpenTrunk(evt: ref<VehicleOpenTrunk>) -> EntityNotificationTypescripted
public final func OnPreventionVehicleHackedEvent(evt: ref<PreventionVehicleHackedEvent>) -> EntityNotificationTypescripted
public func OnSetExposeQuickHacks(evt: ref<SetExposeQuickHacks>) -> EntityNotificationTypescripted
public final func OnToggleDoorWrapperEvent(evt: ref<vehicleToggleDoorWrapperEvent>) -> EntityNotificationTypescripted
protected func OnToggleTakeOverControl(evt: ref<ToggleTakeOverControl>) -> EntityNotificationTypescripted
public final func OnToggleVehicle(evt: ref<ToggleVehicle>) -> EntityNotificationTypescripted
protected final func OnVehicleBodyDisposalPerformedEvent(evt: ref<VehicleBodyDisposalPerformedEvent>) -> EntityNotificationTypescripted
protected final func OnVehicleDelayedQuestHornEvent(evt: ref<VehicleQuestDelayedHornEvent>) -> EntityNotificationTypescripted
protected final func OnVehicleDetachPartEvent(evt: ref<VehicleDetachPartEvent>) -> EntityNotificationTypescripted
public final func OnVehicleDoorClose(evt: ref<VehicleDoorClose>) -> EntityNotificationTypescripted
public final func OnVehicleDoorInteraction(evt: ref<VehicleDoorInteraction>) -> EntityNotificationTypescripted
public final func OnVehicleDoorInteractionStateChange(evt: ref<VehicleDoorInteractionStateChange>) -> EntityNotificationTypescripted
public final func OnVehicleDoorOpen(evt: ref<VehicleDoorOpen>) -> EntityNotificationTypescripted
public final func OnVehicleDumpBody(evt: ref<VehicleDumpBody>) -> EntityNotificationTypescripted
protected final func OnVehicleFinishedMounting(evt: ref<VehicleFinishedMountingEvent>) -> EntityNotificationTypescripted
public final func OnVehicleForceOccupantOut(evt: ref<VehicleForceOccupantOut>) -> EntityNotificationTypescripted
protected final func OnVehicleLightQuestChangeColorEvent(evt: ref<VehicleLightQuestChangeColorEvent>) -> EntityNotificationTypescripted
protected final func OnVehicleLightQuestToggleEvent(evt: ref<VehicleLightQuestToggleEvent>) -> EntityNotificationTypescripted
protected func OnVehicleOverrideAccelerate(evt: ref<VehicleOverrideAccelerate>) -> EntityNotificationTypescripted
protected func OnVehicleOverrideExplode(evt: ref<VehicleOverrideExplode>) -> EntityNotificationTypescripted
protected func OnVehicleOverrideForceBrakes(evt: ref<VehicleOverrideForceBrakes>) -> EntityNotificationTypescripted
protected final func OnVehiclePanzerBootupUIQuestEvent(evt: ref<VehiclePanzerBootupUIQuestEvent>) -> EntityNotificationTypescripted
public final func OnVehiclePlayerTrunk(evt: ref<VehiclePlayerTrunk>) -> EntityNotificationTypescripted
protected final func OnVehicleQuestAVThrusterEvent(evt: ref<VehicleQuestAVThrusterEvent>) -> EntityNotificationTypescripted
protected final func OnVehicleQuestChangeDoorStateEvent(evt: ref<VehicleQuestChangeDoorStateEvent>) -> EntityNotificationTypescripted
protected final func OnVehicleQuestChangeWindowStateEvent(evt: ref<vehicleChangeWindowStateEvent>) -> EntityNotificationTypescripted
protected final func OnVehicleQuestCrystalDomeEvent(evt: ref<VehicleQuestCrystalDomeEvent>) -> EntityNotificationTypescripted
protected final func OnVehicleQuestHornEvent(evt: ref<VehicleQuestHornEvent>) -> EntityNotificationTypescripted
protected final func OnVehicleQuestSirenEvent(evt: ref<VehicleQuestSirenEvent>) -> EntityNotificationTypescripted
protected final func OnVehicleQuestToggleEngineEvent(evt: ref<VehicleQuestToggleEngineEvent>) -> EntityNotificationTypescripted
protected final func OnVehicleQuestUIEffectEvent(evt: ref<VehicleQuestUIEffectEvent>) -> EntityNotificationTypescripted
protected final func OnVehicleQuestUIEvent(evt: ref<VehicleQuestEnableUIEvent>) -> EntityNotificationTypescripted
protected final func OnVehicleQuestVisualDestructionEvent(evt: ref<VehicleQuestVisualDestructionEvent>) -> EntityNotificationTypescripted
protected final func OnVehicleQuestWindowDestructionEvent(evt: ref<VehicleQuestWindowDestructionEvent>) -> EntityNotificationTypescripted
protected final func OnVehicleRaceQuestEvent(evt: ref<VehicleRaceQuestEvent>) -> EntityNotificationTypescripted
protected final func OnVehicleRadioEvent(evt: ref<VehicleRadioEvent>) -> EntityNotificationTypescripted
private final func OnVehicleSeatReservationEvent(evt: ref<VehicleSeatReservationEvent>) -> EntityNotificationTypescripted
protected final func OnVehicleStartedUnmountingEvent(evt: ref<VehicleStartedUnmountingEvent>) -> EntityNotificationTypescripted
public final func OnVehicleTakeBody(evt: ref<VehicleTakeBody>) -> EntityNotificationTypescripted
public final func OnVehicleWindowClose(evt: ref<VehicleWindowClose>) -> EntityNotificationTypescripted
public final func OnVehicleWindowOpen(evt: ref<VehicleWindowOpen>) -> EntityNotificationTypescripted
public final func OpenAllRegularVehDoors(forceScene: Bool)scripted
private final func OpenAllVehDoors(forceScene: Bool)scripted
private final func OpenAllVehWindows()scripted
private final func ProcessBodyDisposalEvent()scripted
protected final func ProcessVehicleCrackLockTutorial()scripted
protected final func ProcessVehicleCrackLockTutorialUsed()scripted
protected final func ProcessVehicleHijackTutorial()scripted
protected final func ProcessVehicleHijackTutorialUsed()scripted
public final func PushActionsToInteractionComponent(interaction: ref<InteractionComponent>, choices: script_ref<array<InteractionChoice>>, context: script_ref<VehicleActionsContext>)scripted
private final func QuestLockAllVehDoors()scripted
protected final func RefreshSkillchecks()scripted
private final func ResetVehicle()scripted
private final func ResetVehicleInteractionState()scripted
protected final func SendStimsOnVehicleQuickhack(shouldTriggerIllegalActionStim: Bool, areHacksIndefiniteDuration: Bool)scripted
protected final func SendVehicleStimsOnVehicleQuickhack(vehicleQuickhackStimDuration: Float)scripted
public final func SetCrystalDomeQuestState(value: Bool)scripted
public final func SetCrystalDomeState(value: Bool)scripted
public final func SetDoorInteractionState(door: EVehicleDoor, state: VehicleDoorInteractionState, source: script_ref<String>)scripted
public final func SetDoorState(door: EVehicleDoor, state: VehicleDoorState, immediate: Bool)scripted
public final func SetHasAnyDoorOpen(set: Bool)scripted
public final func SetHasDefaultStateBeenSet(set: Bool)scripted
public final func SetHasExploded(set: Bool)scripted
public final func SetHasStateBeenModifiedByQuest(set: Bool)scripted
public final func SetHasVisualDestructionBeenSet(set: Bool)scripted
public final func SetIsCrystalDomeQuestModified(value: Bool)scripted
public final func SetIsDefaultLightToggleSet(value: Bool)scripted
public final func SetIsDestroyed(value: Bool)scripted
public final func SetIsPlayerVehicle(set: Bool)scripted
public final func SetIsStolen(value: Bool)scripted
public final func SetIsSubmerged(set: Bool)scripted
public final func SetIsUiQuestModified(value: Bool)scripted
public final func SetShouldForceExitDelamain(value: Bool)scripted
public final func SetSirenLightsState(value: Bool)scripted
public final func SetSirenSoundsState(value: Bool)scripted
public final func SetSirenState(value: Bool)scripted
public final func SetTempDoorInteractionState(door: EVehicleDoor, state: VehicleDoorInteractionState)scripted
public final func SetThrusterState(set: Bool)scripted
public final func SetUiQuestState(value: Bool)scripted
public final func SetVehicleApperanceCustomizationInDistanceTermination(set: Bool)scripted
public final func SetVehicleVisualCustomizationActive(set: Bool)scripted
public final func SetVehicleVisualCustomizationnBlockedByDamage(value: Bool)scripted
public final func SetVehicleVisualCustomizationTemplate(template: VehicleVisualCustomizationTemplate)scripted
public final func SetWindowState(door: EVehicleDoor, state: EVehicleWindowState)scripted
public final func ShouldForceExitDelamain() -> Boolscripted
public final func ToggleReserveSeatDuringUnmounting(active: Bool, slotID: CName)scripted
private final func UnlockAllVehDoors()scripted
private final func UpdateCustomizationDataToNewSystem()scripted