Author Topic: FollowPlayer - Another update!  (Read 6998 times)

I'm not actually sure how to go about doing that.
well.. crud
I was really looking forward to that

Doesn't mean it's not happening

I'm not actually sure how to go about doing that.
Change
Code: [Select]
registerOutputEvent(Bot, "FollowPlayer", "list Owner 0 Nearest 1 Farthest 2 Custom 3\tint -1 999999 -1\tbool");
To
Code: [Select]
registerOutputEvent(Bot, "FollowPlayer", "list Owner 0 Nearest 1 Farthest 2 Custom 3 Activator 4\tint -1 999999 -1\tbool", 1);
Notice the additional 1 at the end
Now the function has one more parameter:
Code: [Select]
function AIPlayer::followPlayer(%obj, %list, %int, %bool, %client)
And you need to add this somewhere in the function:
Code: [Select]
else if(%list == 4 && isObject(%client.player))
%player = %client.player
Done



Update!

Added "Activator" option.

Holy, You're one quick scripter.


can't tell if sarcasm
Not sarcasm at all.
Also, I like your addon, I haven't tried it yet, I might once it's on RTB because I'm lazy like that.

Just a suggestion,Could you make a text box to set up in what radius they can wander around you?

Because the following Bot/s sometimes block the path.