You can do this:
Code:
sub EVENT_SPAWN {
#Set this to the NPCID you want the NPC to follow
my $OpponentID = 1010101;
#Get Target NPC
my $getmobbynpctype = $entity_list->GetMobByNpcTypeID($OpponentID);
#Get the NPC's Entity ID
my $follow_target = $getmobbynpctype->GetID();
quest::follow($follow_target);
}
By getting the NPC this way, you can set follow to happen from any event type including EVENT_TIMER and EVENT_SIGNAL. If you need anything else, feel free to ask.
And yeah, follow distance would be something awesome to be able to adjust. I could really use an adjustable setting for distance in the scripted event I have been working on lately.