Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_InspectionUserAction.c
Go to the documentation of this file.
2{
4
5 override bool CanBeShownScript(IEntity user)
6 {
8 return false;
9
10 CharacterControllerComponent charComp = CharacterControllerComponent.Cast(user.FindComponent(CharacterControllerComponent));
11 return charComp.GetInspect();
12 }
13
14 override void Init(IEntity pOwnerEntity, GenericComponent pManagerComponent)
15 {
17 // If there is no WeaponComponent, this might be an attachment. Check up the parent chain
19 {
20 IEntity parent = pOwnerEntity.GetParent();
21 while (parent)
22 {
25 parent = null;
26 else
27 parent = parent.GetParent();
28 }
29 }
30 }
31};
proto external Managed FindComponent(typename typeName)
proto external IEntity GetParent()
override void Init(IEntity pOwnerEntity, GenericComponent pManagerComponent)
BaseWeaponComponent m_WeaponComponent
override bool CanBeShownScript(IEntity user)
modded version for to be used with the inventory 2.0