class Building
Building › EntityAI › Entity › ObjectTyped › Object › IEntity › Managed
Constructors 1
void Building()Show 1 more
, m_InteractActionsMembers 3
static ref map<string, ref AdditionalDoorInfosHolder> m_AdditionalDoorInfosMap = new map<string, ref AdditionalDoorInfosHolder>Additional script info
Show 1 more
, BuildingBase.CanReceiveAttachment()protected ref InstancedAttachmentGroupDataBase m_InstancedAttGroupDataref TIntArray m_InteractActionsMethods 50
proto native int GetLaddersCount()Gets the index of the door based on the view geometry component index
Show 10 more
, ActionLockDoors.ActionCondition(), ActionLockDoors.LockDoor(), ActionLockedDoors.ActionCondition(), ActionLockedDoors.OnExecute(), ActionOpenDoors.ActionCondition(), ActionOpenDoors.OnStartServer(), ActionUnlockDoors.ActionCondition(), ActionUnlockDoors.UnlockDoor(), ActionUnlockShippingContainer.OnFinishProgressServer(), and BuildingBase.DoorsDirectionalCheck()proto native int GetDoorCount()Returns the number of the doors in the building
When the door is requested to be fully open (animation wanted phase is greater than 0.5)
When the wanted phase is at the open phase target (1.0)
When the wanted phase is at the ajar phase target (0.2)
When the phase is at the close phase target (0.0)
When the door is locked
proto native void PlayDoorSound(int index)Plays the appropriate sound at the door, based on animation phase and state
proto native void OpenDoor(int index)Attempts to open the door
proto native void CloseDoor(int index)Attempts to close the door
Locks the door if not already locked, resets the door health. 'force = true' will close the door if open
Unlocks the door if locked, AJAR animation optional
Position in world space for where the door sounds are played from
proto native void OutputDoorLog()Requires special build as logging is disabled even on internal builds due to memory usage. Used for checking of possible causes of navmesh desync
Gets the nearest door based on the sound position (quick and dirty function for debugging)
void OnDoorOpenStart(DoorStartParams params)Event for when the door starts opening
void OnDoorOpenFinish(DoorFinishParams params)Event for when the door finishes opening
void OnDoorOpenAjarStart(DoorStartParams params)Event for when the door starts opening ajarred (usually after unlock)
void OnDoorOpenAjarFinish(DoorFinishParams params)Event for when the door finishes opening ajarred (usually after unlock)
void OnDoorCloseStart(DoorStartParams params)Event for when the door starts closing
void OnDoorCloseFinish(DoorFinishParams params)Event for when the door finishes closing
void OnDoorLocked(DoorLockParams params)Event for when the door is locked
void OnDoorUnlocked(DoorLockParams params)Event for when the door is unlocked
bool CanDoorBeOpened(notnull DoorManipulationParams params)Show 1 more
, DoorManipulationParams.m_DoorIndexCheck if the door is closed and if the door is unlocked
Which door is compatible with which key (door idx supplied). Bitwise.
doorIdx
Returns: bitwise value of all compatible locks
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)override bool IsBuilding()override bool CanObstruct()override bool DisableVicinityIcon()override bool IsHealthVisible()override bool ShowZonesHealth()protected void InitializeDoorInfos()Show 3 more
, AdditionalDoorInfosHolder.Init(), map.Set(), and m_AdditionalDoorInfosMapAdditionalDoorInfo GetDoorInfo(int doorIdx)Show 1 more
, m_AdditionalDoorInfosMapAdditionalDoorInfosHolder GetDoorInfoHolder()override protected void InitializeInstanceAttachmentGroupsData()override bool IsInventoryVisible()override bool IsDetectableByVicinityCone()override int GetMeleeTargetType()