Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
InventoryItemComponent.c
Go to the documentation of this file.
1/*
2===========================================
3Do not modify, this script is generated
4===========================================
5*/
6
11
13{
14 ref ScriptInvoker<bool> m_OnLockedStateChangedInvoker = new ScriptInvoker<bool>();
15
17
19 proto external IEntity GetOwner();
21 proto external bool IsLocked();
22 proto external bool IsUserLocked();
23 proto external bool IsSystemLocked();
24 // Get slot where item is located (returns null if none)
25 proto external InventoryStorageSlot GetParentSlot();
26 proto external ItemAttributeCollection GetAttributes();
28 proto external void HideOwner();
30 proto external void ShowOwner();
32 proto external void SetTraceable(bool traceable);
34 proto external void DisablePhysics();
36 proto external void EnablePhysics();
38 proto external void ActivateOwner(bool active);
40 proto external float GetAdditionalWeight();
46 proto external void SetAdditionalWeight(float additionalWeight);
48 proto external float GetTotalWeight();
50 proto external float GetAdditionalVolume();
56 proto external void SetAdditionalVolume(float additionalVolume);
58 proto external float GetTotalVolume();
64 proto external void PlaceOnGround(IEntity callerEntity = null);
66 proto external bool IsHiddenInVicnity();
68 proto external UIInfo GetUIInfo();
71 proto external bool RequestUserLock(IEntity caller, bool locked);
77 proto external BaseItemAttributeData FindAttribute(typename typeName);
79 proto external IEntity CreatePreviewEntity(BaseWorld world, int camera);
80
81 // callbacks
82
83 // It should be called with a right return value to change the visibility of entities with hierarchy according to needs.
84 event protected bool ShouldChangeVisibilityOfHierarchy() { return false; };
86 event protected bool ShouldHideInVicinity();
88 event protected bool OverridePlacementTransform(IEntity caller, out vector computedTransform[4]);
90 event protected void OnPlacedOnGround ();
91 event protected void OnPostInit(IEntity owner);
92 event private void OnLockedStateChanged(bool nowLocked) { if (m_OnLockedStateChangedInvoker) m_OnLockedStateChangedInvoker.Invoke(nowLocked); };
93 event private void OnParentSlotChanged(InventoryStorageSlot oldSlot, InventoryStorageSlot newSlot) { if (m_OnParentSlotChangedInvoker) m_OnParentSlotChangedInvoker.Invoke(oldSlot, newSlot); };
94}
95
override void SetAdditionalWeight()
void OnPlacedOnGround()
Override this function if for example physics should be enabled or item's owner should be activated w...
bool OverridePlacementTransform(IEntity caller, out vector computedTransform[4])
Override final transformation of dropped item, return true in case transformation should be applied.
bool ShouldHideInVicinity()
implement custom visibility behavior in vicinity
void OnPostInit(IEntity owner)
UIInfo - allows to define UI elements.
Definition UIInfo.c:14
IEntity GetOwner()
Owner entity of the fuel tank.
ScriptInvokerBase< func > ScriptInvoker
Definition tools.c:134