Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_LootAction.c
Go to the documentation of this file.
2{
3 #ifndef DISABLE_INVENTORY
4 //------------------------------------------------------------------------------------------------
5 override protected void PerformActionInternal(SCR_InventoryStorageManagerComponent manager, IEntity pOwnerEntity, IEntity pUserEntity)
6 {
7 auto vicinity = CharacterVicinityComponent.Cast( pUserEntity.FindComponent( CharacterVicinityComponent ));
8 if ( !vicinity )
9 return;
10
11 vicinity.SetItemOfInterest(pOwnerEntity);
12 manager.SetLootStorage( pOwnerEntity );
13 manager.OpenInventory();
14 }
15 #endif
16};
proto external Managed FindComponent(typename typeName)
modded version for to be used with the inventory 2.0
void PerformActionInternal(SCR_InventoryStorageManagerComponent manager, IEntity pOwnerEntity, IEntity pUserEntity)