Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
CompartmentAccessComponent.c
Go to the documentation of this file.
1 /*
2 ===========================================
3 Do not modify, this script is generated
4 ===========================================
5 */
6 
13 {
14 }
15 
16 class CompartmentAccessComponent: GameComponent
17 {
19  proto external BaseCompartmentSlot GetCompartment();
21  proto external BaseCompartmentSlot FindFreeCompartment(IEntity targetEntity, ECompartmentType compartmentType, bool useReserved = true);
22  proto external BaseCompartmentSlot FindCompartmentReservedBy(IEntity targetEntity, IEntity reservedBy);
24  proto external bool IsInCompartment();
26  proto external bool IsInCompartmentADS();
28  proto external bool IsTargetVehicleAccessible(IEntity targetEntity);
30  proto external bool CanGetInVehicle(IEntity targetEntity);
32  proto external IEntity GetOwner();
34  proto external bool CanGetInVehicleViaDoor(IEntity targetEntity, BaseCompartmentSlot targetCompartment, int doorInfoIndex);
36  proto external bool GetInVehicle(IEntity targetEntity, BaseCompartmentSlot targetCompartment, int doorInfoIndex);
38  proto external bool MoveInVehicle(IEntity targetEntity, BaseCompartmentSlot targetCompartment);
40  proto external bool WasLastGettingOutEjecting();
42  proto external bool WasLastGettingOutTeleportation();
44  proto external void GetTeleportTarget(out vector outMat[4]);
46  proto external bool IsGettingIn();
48  proto external bool IsGettingOut();
50  proto external bool CanGetOutVehicle();
52  proto external bool CanGetOutVehicleViaDoor(int doorIndex);
54  proto external bool GetOutVehicle(int doorInfoIndex, bool ejects);
56  proto external bool MoveOutVehicle(int doorInfoIndex, vector targetTransform[4]);
58  proto external bool EjectOutOfVehicle();
60  proto external bool CanJumpOutVehicle();
62  proto external bool JumpOutVehicle();
64  static proto IEntity GetVehicleIn(IEntity entity);
65 
66  // callbacks
67 
68  event protected void OnCompartmentEntered(IEntity targetEntity, BaseCompartmentManagerComponent manager, int mgrID, int slotID, bool move);
69  event protected void OnCompartmentLeft(IEntity targetEntity, BaseCompartmentManagerComponent manager, int mgrID, int slotID, bool move);
70 }
71 
CanGetOutVehicleViaDoor
proto external bool CanGetOutVehicleViaDoor(int doorIndex)
Returns true if compartment can be gotten out of via the door with index.
EjectOutOfVehicle
proto external bool EjectOutOfVehicle()
Teleport out of the vehicle normally - when exiting is not possible.
MoveOutVehicle
proto external bool MoveOutVehicle(int doorInfoIndex, vector targetTransform[4])
Move out of (teleport from) current vehicle via the door with index.
IsTargetVehicleAccessible
proto external bool IsTargetVehicleAccessible(IEntity targetEntity)
Returns true if.
CanGetInVehicle
proto external bool CanGetInVehicle(IEntity targetEntity)
Returns true if.
CanGetOutVehicle
proto external bool CanGetOutVehicle()
Returns true if compartment can be gotten out of.
GameComponentClass
Definition: GameComponentClass.c:7
FindCompartmentReservedBy
proto external BaseCompartmentSlot FindCompartmentReservedBy(IEntity targetEntity, IEntity reservedBy)
ECompartmentType
ECompartmentType
Definition: ECompartmentType.c:7
OnCompartmentEntered
event protected void OnCompartmentEntered(IEntity targetEntity, BaseCompartmentManagerComponent manager, int mgrID, int slotID, bool move)
Definition: SCR_CharacterInventoryStorageComponent.c:1248
WasLastGettingOutTeleportation
proto external bool WasLastGettingOutTeleportation()
If true, last exiting of vehicle was by teleportation.
CanGetInVehicleViaDoor
proto external bool CanGetInVehicleViaDoor(IEntity targetEntity, BaseCompartmentSlot targetCompartment, int doorInfoIndex)
Returns true if.
FindFreeCompartment
proto external BaseCompartmentSlot FindFreeCompartment(IEntity targetEntity, ECompartmentType compartmentType, bool useReserved=true)
Returns the first free compartment of a given type on.
GetOutVehicle
proto external bool GetOutVehicle(int doorInfoIndex, bool ejects)
Get out of current entity via the door with index.
IsInCompartment
proto external bool IsInCompartment()
Returns true if we're inside a compartment.
GetInVehicle
proto external bool GetInVehicle(IEntity targetEntity, BaseCompartmentSlot targetCompartment, int doorInfoIndex)
Make current entity get into.
IsGettingOut
proto external bool IsGettingOut()
Returns true while getting out.
GetOwner
IEntity GetOwner()
Owner entity of the fuel tank.
Definition: SCR_FuelNode.c:128
JumpOutVehicle
proto external bool JumpOutVehicle()
Jump out of current compartment.
GetTeleportTarget
proto external void GetTeleportTarget(out vector outMat[4])
Get the target transform for the last exit from vehicle.
WasLastGettingOutEjecting
proto external bool WasLastGettingOutEjecting()
If true, last exiting of vehicle was by ejecting, so we should not reset vehicle inputs.
MoveInVehicle
proto external bool MoveInVehicle(IEntity targetEntity, BaseCompartmentSlot targetCompartment)
Make current entity move (teleport) into.
IsGettingIn
proto external bool IsGettingIn()
Returns true while getting in.
OnCompartmentLeft
event protected void OnCompartmentLeft(IEntity targetEntity, BaseCompartmentManagerComponent manager, int mgrID, int slotID, bool move)
Definition: SCR_XPHandlerComponent.c:134
CanJumpOutVehicle
proto external bool CanJumpOutVehicle()
Returns true if current compartment can be jumped from.
IsInCompartmentADS
proto external bool IsInCompartmentADS()
Returns true if we're inside a compartment with enabled ADS.
GetCompartment
CompartmentAccessComponentClass GameComponentClass GetCompartment()
Returns the compartent we're in.
CompartmentAccessComponentClass
Definition: CompartmentAccessComponent.c:12
GameComponent
Definition: GameComponent.c:12