838 {
840 {
841 InventoryLocation loc = new InventoryLocation();
842 GetInventory().GetCurrentInventoryLocation(loc);
844 {
845 PlayerBase player = PlayerBase.Cast(GetHierarchyRootPlayer());
846
847 vector player_pos = player.GetPosition();
848 vector aim_pos = player.GetAimPosition();
849
850 if ( vector.DistanceSq(player_pos, aim_pos) <= ( 1.5 * 1.5 ) )
851 {
853 }
854 }
855 }
856
857 return false;
858 }
InventoryLocationType
types of Inventory Location
proto native int GetType()
returns type of InventoryLocation
bool IsPlaceableAtPosition(vector position)
proto native CGame GetGame()