GetPlayersInZone()
This will get a LUA table of all players in the provided zone.
New LUA Function: GetPlayersInZone
Moderator: Team Members
-
Jabantiz
- Lead Developer
- Posts: 2912
- Joined: Wed Jul 25, 2007 2:52 pm
- Location: California
- Gangrenous
- Posts: 812
- Joined: Sun Apr 24, 2016 6:54 am
- Characters: Dinsmoor
Re: New LUA Function: GetPlayersInZone
This was needed greatly. Also while you are here
Is there any LUA functions that you know of regarding text / hails and such? What I mean by that, are there any functions that capture text when a player speaks to an NPC?
Resident Dirty Hippy
-
Jabantiz
- Lead Developer
- Posts: 2912
- Joined: Wed Jul 25, 2007 2:52 pm
- Location: California
Re: New LUA Function: GetPlayersInZone
No there is not. I assume you mean /say in the vicinity of a spawn?
- Gangrenous
- Posts: 812
- Joined: Sun Apr 24, 2016 6:54 am
- Characters: Dinsmoor
-
Jabantiz
- Lead Developer
- Posts: 2912
- Joined: Wed Jul 25, 2007 2:52 pm
- Location: California
Re: New LUA Function: GetPlayersInZone
It might be possible to add something in but would it be ok if it only works when the player has an npc targeted? Doing proximity checks every time some one uses /say would not be good for performance.
- Gangrenous
- Posts: 812
- Joined: Sun Apr 24, 2016 6:54 am
- Characters: Dinsmoor
Re: New LUA Function: GetPlayersInZone
Absolutely, in fact that is the way I think it should be done, only when a player has an NPC targeted.
Resident Dirty Hippy
Who is online
Users browsing this forum: No registered users and 0 guests