DayZ Scripts
v1.21.156300 ยท Jun 20, 2023
 
Loading...
Searching...
No Matches
InventorySlots.c
Go to the documentation of this file.
1
6{
15 const int COUNT;
17 const int INVALID;
19
20 #ifdef DIAG_DEVELOPER
21 private void InventorySlots() {}
22 private void ~InventorySlots() {}
23 #else
26 #endif
27
42 static proto native int GetSlotIdFromString(string slot_name);
48 static proto native owned string GetSlotName(int id);
54 static proto native owned string GetSlotDisplayName(int id);
59 static proto native bool IsSlotIdValid(int slotId);
64 static proto native int GetStackMaxForSlotId(int slot_Id);
69 static proto native bool GetShowForSlotId(int slot_Id);
74 static proto native bool GetAutoAttachForSlotId(int slot_Id);
80 static proto bool GetBoneNameForSlotId(int slot_Id, out string bone_name);
86 static proto bool GetSelectionForSlotId(int slot_Id, out string selection);
87
92 //static proto native int GetBoneIndexForSlotId (int slot_Id);
93};
94
95
provides access to slot configuration
static proto native int GetSlotIdFromString(string slot_name)
converts string to slot_id
static proto bool GetBoneNameForSlotId(int slot_Id, out string bone_name)
static proto native bool IsSlotIdValid(int slotId)
verifies existence of the slot id
static proto native int GetStackMaxForSlotId(int slot_Id)
const int COUNT
Amount of pre-populated slots (32)
static proto native owned string GetSlotName(int id)
converts slot_id to string
static proto bool GetSelectionForSlotId(int slot_Id, out string selection)
static proto native owned string GetSlotDisplayName(int id)
converts slot_id to string
static proto native bool GetShowForSlotId(int slot_Id)
static proto native bool GetAutoAttachForSlotId(int slot_Id)
const int INVALID
Invalid slot (-1)