Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_EditableVehicleComponent.c File Reference

Go to the source code of this file.

Data Structures

class  SCR_EditableVehicleComponentClass
 

Functions

int GetPlayerCountInVehicle ()
 
protected void OnFactionUpdate (FactionAffiliationComponent owner, Faction previousFaction, Faction newFaction)
 
protected void OnDestroyed (IEntity owner)
 
override Faction GetFaction ()
 
override ScriptInvoker GetOnUIRefresh ()
 
override SCR_EditableEntityComponent GetAIGroup ()
 
override SCR_EditableEntityComponent GetAIEntity ()
 
override int GetPlayerID ()
 
void UpdatePlayerCountInVehicle ()
 
override int GetCrew (out notnull array< CompartmentAccessComponent > crewCompartmentAccess, bool ignorePlayers=true)
 
protected void PlayerTeleportedFeedback ()
 Add feedback to players that they are teleported when inside of the vehicle. More...
 
override void SetTransform (vector transform[4], bool changedByUser=false)
 
bool CanOccupyVehicleWithCharacters (array< ECompartmentType > compartmentTypes, bool checkHasDefaultOccupantsData, int playerID, bool checkEditorBudget=true, bool checkOccupyingFaction=true, bool checkForFreeCompartments=true, bool checkForFreeDefaultCompartments=false)
 
protected bool HasEnoughBudgetForDefaultOccupants (array< ECompartmentType > compartmentTypes, int playerID, EEditorMode editorMode, out bool noFreeDefaultCompartments)
 
void OccupyVehicleWithDefaultCharacters (notnull array< ECompartmentType > compartmentTypes)
 
SCR_BaseCompartmentManagerComponent GetCompartmentManager ()
 
override SCR_EditableEntityComponent EOnEditorPlace (out SCR_EditableEntityComponent parent, SCR_EditableEntityComponent recipient, EEditorPlacingFlags flags, bool isQueue, int playerID=0)
 
override void EOnPhysicsActive (IEntity owner, bool activeState)
 
override void OnPostInit (IEntity owner)
 Editable Mine. More...
 
void ~SCR_EditableVehicleComponent ()
 

Variables

SCR_EditableVehicleComponentClass m_CompartmentManager
 Special configuration for editable wehicle. More...
 
protected SCR_VehicleFactionAffiliationComponent m_VehicleFactionAffiliation
 
protected ref ScriptInvoker m_OnUIRefresh
 
protected int m_iPlayersInVehicle
 

Function Documentation

◆ CanOccupyVehicleWithCharacters()

bool CanOccupyVehicleWithCharacters ( array< ECompartmentType compartmentTypes,
bool  checkHasDefaultOccupantsData,
int  playerID,
bool  checkEditorBudget = true,
bool  checkOccupyingFaction = true,
bool  checkForFreeCompartments = true,
bool  checkForFreeDefaultCompartments = false 
)

Check if vehicle can spawn characters (Of vehicle Faction) in the vehicle. Cannot spawn characters in vehicle if occupied by another faction that is hostile

Parameters
[in]compartmentTypesGiven compartment types that need to be checked if can be filled.
[in]checkHasDefaultOccupantsData
[in]playerIDIf server player ID must be given of the player that wans to check if can occupy, if client no ID needs to be given
[in]checkEditorBudgetIf true will check if characters to spawn are within budget. Function will return false if there isn't enough budget
[in]checkOccupyingFactionIf true function will check if the faction of the vehicle is null (empty) or the same/friendly to the static faction as given in the editableUIInfo. Function will return false if faction is hostile or neutral
[in]checkForFreeCompartmentsIf true will check if there are compartments free for the given compartments types. Function will return false if there are no free compartments of given type
[in]checkForFreeDefaultCompartments
Returns
Will return true if a character can be spawned in at least one compartment

Definition at line 225 of file SCR_EditableVehicleComponent.c.

◆ EOnEditorPlace()

override SCR_EditableEntityComponent EOnEditorPlace ( out SCR_EditableEntityComponent  parent,
SCR_EditableEntityComponent  recipient,
EEditorPlacingFlags  flags,
bool  isQueue,
int  playerID = 0 
)

Definition at line 330 of file SCR_EditableVehicleComponent.c.

◆ EOnPhysicsActive()

override void EOnPhysicsActive ( IEntity  owner,
bool  activeState 
)

Definition at line 371 of file SCR_EditableVehicleComponent.c.

◆ GetAIEntity()

override SCR_EditableEntityComponent GetAIEntity ( )

Definition at line 78 of file SCR_EditableVehicleComponent.c.

◆ GetAIGroup()

override SCR_EditableEntityComponent GetAIGroup ( )

Definition at line 61 of file SCR_EditableVehicleComponent.c.

◆ GetCompartmentManager()

SCR_BaseCompartmentManagerComponent GetCompartmentManager ( )

Get Compartment manager of vehicle

Returns
Compartment manager

Definition at line 324 of file SCR_EditableVehicleComponent.c.

◆ GetCrew()

override int GetCrew ( out notnull array< CompartmentAccessComponent >  crewCompartmentAccess,
bool  ignorePlayers = true 
)

Definition at line 154 of file SCR_EditableVehicleComponent.c.

◆ GetFaction()

override Faction GetFaction ( )

Definition at line 39 of file SCR_EditableVehicleComponent.c.

◆ GetOnUIRefresh()

override ScriptInvoker GetOnUIRefresh ( )

Definition at line 52 of file SCR_EditableVehicleComponent.c.

◆ GetPlayerCountInVehicle()

int GetPlayerCountInVehicle ( )
Returns

Definition at line 19 of file SCR_EditableVehicleComponent.c.

◆ GetPlayerID()

override int GetPlayerID ( )

Definition at line 95 of file SCR_EditableVehicleComponent.c.

◆ HasEnoughBudgetForDefaultOccupants()

protected bool HasEnoughBudgetForDefaultOccupants ( array< ECompartmentType compartmentTypes,
int  playerID,
EEditorMode  editorMode,
out bool  noFreeDefaultCompartments 
)

Definition at line 256 of file SCR_EditableVehicleComponent.c.

◆ OccupyVehicleWithDefaultCharacters()

void OccupyVehicleWithDefaultCharacters ( notnull array< ECompartmentType compartmentTypes)

Spawn characters (Of vehicle Faction) within the Vehicle (Server only)

Parameters
[in]compartmentTypesGiven compartment types that need to be filled with characters

Definition at line 316 of file SCR_EditableVehicleComponent.c.

◆ OnDestroyed()

protected void OnDestroyed ( IEntity  owner)

Definition at line 32 of file SCR_EditableVehicleComponent.c.

◆ OnFactionUpdate()

protected void OnFactionUpdate ( FactionAffiliationComponent  owner,
Faction  previousFaction,
Faction  newFaction 
)

Definition at line 25 of file SCR_EditableVehicleComponent.c.

◆ PlayerTeleportedFeedback()

protected void PlayerTeleportedFeedback ( )

Add feedback to players that they are teleported when inside of the vehicle.

Definition at line 186 of file SCR_EditableVehicleComponent.c.

◆ SetTransform()

override void SetTransform ( vector  transform[4],
bool  changedByUser = false 
)

Definition at line 205 of file SCR_EditableVehicleComponent.c.

◆ UpdatePlayerCountInVehicle()

void UpdatePlayerCountInVehicle ( )

Definition at line 127 of file SCR_EditableVehicleComponent.c.

◆ ~SCR_EditableVehicleComponent()

void ~SCR_EditableVehicleComponent ( )

Definition at line 401 of file SCR_EditableVehicleComponent.c.

Variable Documentation

◆ m_iPlayersInVehicle

protected int m_iPlayersInVehicle

Definition at line 15 of file SCR_EditableVehicleComponent.c.

◆ m_OnUIRefresh

protected ref ScriptInvoker m_OnUIRefresh

Definition at line 13 of file SCR_EditableVehicleComponent.c.

◆ m_VehicleFactionAffiliation

protected SCR_VehicleFactionAffiliationComponent m_VehicleFactionAffiliation

Definition at line 12 of file SCR_EditableVehicleComponent.c.