View Single Post
  #1  
Old 04-14-2019, 01:55 PM
t0neg0d
Fire Beetle
 
Join Date: Oct 2014
Posts: 22
Default Bug with $npc->SaveGaurdSpot

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?
Reply With Quote