NPC's finding other NPC's $x,$y,$z
i'd like to request somethin to the effect of $npc->$GetNpcX(NPCID); i'm wantin to use it to update npc positions based on the discussion here. think it would be a viable addition, and could be used for other purposes as well.
|
There are already a couple ways to accomplish this, we don't need another.
|
could you please explain how? i've been trying everything, and apparently noone else knows of a way to do so, based on the answers provided on the forums, and IRC.
|
The first step is to get the npc, the second step is to get the locations.
I can think of two ways to do this, the first with $entity_list and the second with $entity_list and list iteration: Code:
my $x_loc = 0; Code:
my $x_loc = 0; |
thank you KLS, i've been at this all day, and noone knew this lol. another learning experience.
|
All times are GMT -4. The time now is 01:03 PM. |
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.