56 proto native
void LockDoor(
int index,
bool force =
false);
59 proto native
void UnlockDoor(
int index,
bool animate =
true);
73 float smallestDist =
float.MAX;
77 for (
int i = 0; i < count; i++)
80 if (dist < smallestDist)
184 if (Gizmo_IsSupported())
190 super.GetDebugActions(outputList);
195 if (super.OnAction(action_id, player, ctx))
211 case EActions.BUILDING_PLAY_DOOR_SOUND:
Param1< int > DoorStartParams
Param2< int, bool > DoorFinishParams
Param1< int > DoorLockParams
Param4< int, int, string, int > TSelectableActionInfoWithColor
eBleedingSourceType GetType()
override bool IsInventoryVisible()
override bool IsBuilding()
proto native int GetDoorIndex(int componentIndex)
Gets the index of the door based on the view geometry component index.
proto native bool IsDoorLocked(int index)
When the door is locked.
ref TIntArray m_InteractActions
proto native void LockDoor(int index, bool force=false)
Locks the door if not already locked, resets the door health. 'force = true' will close the door if o...
proto native bool IsDoorClosed(int index)
When the phase is at the close phase target (0.0).
proto native int GetDoorCount()
Returns the number of the doors in the building.
proto native bool IsDoorOpenedAjar(int index)
When the phase is at the ajar phase target (0.2).
proto native bool IsDoorOpened(int index)
When the phase is at the open phase target (1.0).
proto native bool IsDoorOpening(int index)
When the wanted phase is at the open phase target (1.0).
proto native vector GetDoorSoundPos(int index)
Position in world space for where the door sounds are played from.
void OnDoorOpenStart(DoorStartParams params)
Event for when the door starts opening.
void OnDoorLocked(DoorLockParams params)
Event for 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 vector GetLadderPosBottom(int ladderIndex)
int GetLockCompatibilityType(int doorIdx)
Which door is compatible with which key (door idx supplied).
override bool OnAction(int action_id, Man player, ParamsReadContext ctx)
void OnDoorCloseFinish(DoorFinishParams params)
Event for when the door finishes closing.
void OnDoorCloseStart(DoorStartParams params)
Event for when the door starts closing.
void OnDoorUnlocked(DoorLockParams params)
Event for when the door is unlocked.
override int GetMeleeTargetType()
proto native void OpenDoor(int index)
Attempts to open the door.
override bool CanObstruct()
void OnDoorOpenFinish(DoorFinishParams params)
Event for when the door finishes opening.
override bool IsHealthVisible()
proto native bool IsDoorClosing(int index)
When the wanted phase is at the close phase target (0.0).
proto native bool IsDoorOpeningAjar(int index)
When the wanted phase is at the ajar phase target (0.2).
void OnDoorOpenAjarFinish(DoorFinishParams params)
Event for when the door finishes opening ajarred (usually after unlock).
proto native bool IsDoorOpen(int index)
When the door is requested to be fully open (animation wanted phase is greater than 0....
proto native vector GetLadderPosTop(int ladderIndex)
bool CanDoorBeLocked(int doorIndex)
Check if the door is closed and if the door is unlocked.
override void GetDebugActions(out TSelectableActionInfoArrayEx outputList)
proto native void UnlockDoor(int index, bool animate=true)
Unlocks the door if locked, AJAR animation optional.
bool CanDoorBeOpened(int doorIndex, bool checkIfLocked=false)
bool CanDoorBeClosed(int doorIndex)
proto native float GetDoorSoundDistance(int index)
Audible distance for the door sound.
int GetNearestDoorBySoundPos(vector position)
Gets the nearest door based on the sound position (quick and dirty function for debugging).
void OnDoorOpenAjarStart(DoorStartParams params)
Event for when the door starts opening ajarred (usually after unlock).
proto native void OutputDoorLog()
Requires special build as logging is disabled even on internal builds due to memory usage....
proto native void CloseDoor(int index)
Attempts to close the door.
proto native int GetLaddersCount()
proto void SelectObject(Object object)
Sets the transform of the object directly.
static proto native float DistanceSq(vector v1, vector v2)
Returns the square distance between tips of two 3D vectors.
Serializer ParamsReadContext
proto GizmoApi GetGizmoApi()
const int SAT_DEBUG_ACTION