PDA

View Full Version : Bug with $npc->SaveGaurdSpot


t0neg0d
04-14-2019, 01:55 PM
I'm assuming this method sets the npc's return point once they are no longer attacking something?

Either way, once this method is called in perl or lua...

$npc->SaveGuardSpot();
$npc->SaveGuardSpot(1/0);

or

npc:SaveGuardSpot();
npc:SaveGuardSpot(1/0);

...the script will stop working.

Is there another way to stop an npc from returning to their spawn point? Or is this even the correct way of doing it?

demonstar55
04-14-2019, 03:14 PM
Looks like you need to provide x, y, z, and heading (in that order)

t0neg0d
04-14-2019, 03:51 PM
Looks like you need to provide x, y, z, and heading (in that order)

Thanks a ton. That did it!

cannon
04-15-2019, 05:46 PM
Can you post the code you used to add the x y z? Thanks.