808 {
810 {
811 InventoryLocation loc = new InventoryLocation();
812 GetInventory().GetCurrentInventoryLocation(loc);
814 {
815 PlayerBase player = PlayerBase.Cast(GetHierarchyRootPlayer());
816
817 vector player_pos = player.GetPosition();
818 vector aim_pos = player.GetAimPosition();
819
820 if ( vector.DistanceSq(player_pos, aim_pos) <= ( 1.5 * 1.5 ) )
821 {
823 }
824 }
825 }
826
827 return false;
828 }
InventoryLocationType
types of Inventory Location
proto native int GetType()
returns type of InventoryLocation
bool IsPlaceableAtPosition(vector position)
proto native CGame GetGame()