Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-08-2013, 04:34 PM
devilsknite1 devilsknite1 is offline
C:
devilsknite1's Avatar
Join Date: Jul 2006
Location: Florida, USA
Posts: 269
devilsknite1 has a spectacular aura about
Send a message via AIM to devilsknite1 Send a message via MSN to devilsknite1 Send a message via Yahoo to devilsknite1
No dice :s

If it makes a difference, I'm trying to do this on a gmap, so that may cause some problems. Just in case that changes anything that I'm not catching

EDIT: tried it in a singular level. No luck there either
Reply With Quote
  #2  
Old 04-08-2013, 04:39 PM
Tim_Rocks Tim_Rocks is offline
a true gentlemen
Tim_Rocks's Avatar
Join Date: Aug 2008
Location: USA
Posts: 1,863
Tim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to behold
Quote:
Originally Posted by devilsknite1 View Post
No dice :s

If it makes a difference, I'm trying to do this on a gmap, so that may cause some problems. Just in case that changes anything that I'm not catching

EDIT: tried it in a singular level. No luck there either
Oh, I'm sorry, I wasn't sure what you were looking for at first.. Try this.

PHP Code:
for (temp.plfindNearestPlayers(this.xthis.y)) {
  echo(
temp.pl);

That should help, you'll need distance checks though.
__________________
Reply With Quote
  #3  
Old 04-08-2013, 04:41 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Quote:
Originally Posted by Tim_Rocks View Post
Oh, I'm sorry, I wasn't sure what you were looking for at first.. Try this.

PHP Code:
for (temp.plfindNearestPlayers(this.xthis.y)) {
  echo(
temp.pl);

That should help, you'll need distance checks though.
Actually ya, I think this may be what he wants. He shouldn't need distance checks if he's looking for all players in the level as this is what I think findNearestPlayers() returns(all loaded players).
Reply With Quote
  #4  
Old 04-08-2013, 04:55 PM
Tim_Rocks Tim_Rocks is offline
a true gentlemen
Tim_Rocks's Avatar
Join Date: Aug 2008
Location: USA
Posts: 1,863
Tim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to behold
PHP Code:
for (temp.plfindNearestPlayers(player.xplayer.y)) { //It was this.x, this.y
  
echo(temp.pl);

There ya go, don't forget to check F2 to see the echo's; it's not going to appear on RC.
__________________
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 01:45 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.