-
First Dev On The Internet
Is there a way to do maths with PickupRange and FloorCoordinate ?
Can we do maths with these and how ?
Hud.Game.Me.Stats.PickupRange = number (float)
Hud.Game.Me.FloorCoordinate same as item.FloorCoordinate = xxx.xxx, xxx.xxx, xx.x (Lat. Long. Altitude ?)
(I need to know if an item is in pickup range)
Thanks
-
Savvy ? 🐒
PHP Code:
var itemsInPickupRange = Hud.Game.Items.Where(item => item.Location == ItemLocation.Floor && item.NormalizedXyDistanceToMe <= Hud.Game.Me.Stats.PickupRange);
-
Post Thanks / Like - 1 Thanks
User5981 (1 members gave Thanks to JackCeparou for this useful post)
-
Contributor
just out of curiosity: why do you need to know if an item is within your pickup range? the pickup range is only for globes and gold, isnt it?^^
-
First Dev On The Internet
Originally Posted by
prrovoss
just out of curiosity: why do you need to know if an item is within your pickup range? the pickup range is only for globes and gold, isnt it?^^
When you have, let's say 4 separate veiled crystals on the floor, you pick one up and you get indeed the 4.
Does this have to do with pickup range, "is on screen" or something else?
I don't think it's "is on screen" so it's probably related to pickup range.
-
First Dev On The Internet
I tested it and the items show "in pickup range" when you walk on them, interesting, but not what I'm looking for.
I try to know the perimeter into which a distant similar craft item will be picked up with the one that you pick up to find out which items are inside the perimeter.
Maybe it is a fixed value in the game ?
Edit 1:
- Not "is on screen" for sure
- Modified opacity of PickupRangePlugin shows the perimeter for "group pickup" is bigger.
Edit 2:
- It is apparently a fixed value of 40 (same units as Hud.Game.Me.Stats.PickupRange) so I will replace Hud.Game.Me.Stats.PickupRange by 40 in the code provided by Jack :-)
Last edited by User5981; 09-01-2017 at 03:29 PM.