DayZ Scripts
v1.21.156300 ยท Jun 20, 2023
 
Loading...
Searching...
No Matches
Building.c
Go to the documentation of this file.
1class Building extends EntityAI
2{
3 proto native int GetLaddersCount();
4 proto native vector GetLadderPosTop(int ladderIndex);
5 proto native vector GetLadderPosBottom(int ladderIndex);
6
7 proto native int GetDoorIndex(int componentIndex);
8 proto native bool IsDoorOpen(int index);
9 proto native bool IsDoorLocked(int index);
10 proto native void PlayDoorSound(int index);
11 proto native void OpenDoor(int index);
12 proto native void CloseDoor(int index);
13 proto native void LockDoor(int index);
14 proto native void UnlockDoor(int index);
15 proto native vector GetDoorSoundPos(int index);
16 proto native float GetDoorSoundDistance(int index);
17
18 override bool IsBuilding()
19 {
20 return true;
21 }
22
23 override bool CanObstruct()
24 {
25 return true;
26 }
27
28 override bool IsHealthVisible()
29 {
30 return false;
31 }
32
34
35 void Building()
36 {
38 g_Game.ConfigGetIntArray("cfgVehicles " +GetType() + " InteractActions", m_InteractActions);
39 }
40
41 override bool IsInventoryVisible()
42 {
43 return false;
44 }
45
46 override int GetMeleeTargetType()
47 {
48 return EMeleeTargetType.NONALIGNABLE;
49 }
50};
eBleedingSourceType GetType()
DayZGame g_Game
Definition DayZGame.c:3654
EMeleeTargetType
ref TIntArray m_InteractActions
Definition ItemBase.c:4717
override bool IsInventoryVisible()
Definition Building.c:41
proto native void UnlockDoor(int index)
override bool IsBuilding()
Definition Building.c:18
proto native int GetDoorIndex(int componentIndex)
proto native bool IsDoorLocked(int index)
ref TIntArray m_InteractActions
Definition Building.c:33
proto native vector GetDoorSoundPos(int index)
proto native void PlayDoorSound(int index)
proto native vector GetLadderPosBottom(int ladderIndex)
override int GetMeleeTargetType()
Definition Building.c:46
proto native void OpenDoor(int index)
override bool CanObstruct()
Definition Building.c:23
override bool IsHealthVisible()
Definition Building.c:28
proto native bool IsDoorOpen(int index)
proto native vector GetLadderPosTop(int ladderIndex)
void Building()
Definition Building.c:35
proto native float GetDoorSoundDistance(int index)
proto native void CloseDoor(int index)
proto native int GetLaddersCount()
proto native void LockDoor(int index)
array< int > TIntArray
Definition EnScript.c:687