find spawn by loc

flatlined785

Member
Joined
Jan 22, 2014
Messages
300
Reaction score
0
Points
16
I'm trying to get an npc spawn, by loc.
From what I can tell from the wiki, spawn search supports this, I guess I am doing it wrong.

/target ${Spawn[loc xx yy]}

xx and yy are floats for whatever the loc is.

This will ignore the loc bit and target nearest thing, usually me.
If I stick in NPC it targets the nearest npc.

is it possible? I guess I miss something from the command.
Even better if I could specify a small variance from that exact loc, for example +/- 2 on either number.
 
First, keep in mind you need to flip the locations that you would receive in game when using /loc.

Next, you need to add a radius allowed to the spawn search. So it would look something like:

/tar ${Spawn[loc 100 200 radius 5]}