[solved]How to get a coordinates within a certain distance from a player?

true i just tested it…it’s probably because of how the class is being called…I’ll show you one sec

Edit: here so what seems to be causing it is the spawnTracking() within HOB about line 116. Pretty sure it’s the parameters for the SpawnTesting that’s causing the issue.
Edit2: Please let me know what you think. Thanks!!!j :smiley:

Edit3: I also placed the logs in the folder from edit 1.

Yes, it’s the parameters. Why do you have a Random in there?

1 Like

Lol because the class spawntesting needs random to be initialized but I wasn’t figuring out what random needs to be set to. PI and your infinite wisdim. What does random require to initialize as a none null?

Just create one like you would with any other object. Using one shared Random for all spawns should be fine.

1 Like

Well…now I feel silly
Do a Random random = new Random ();

Will fix that huh?

Yes. Event handler parameters aren’t magic; they can’t construct random things for you (or Random things :stuck_out_tongue:) The only things that can be in event parameters are the event itself and annotated filters.

Random, like all standard Java library classes, is fully explained on the JSE Javadoc page