ID:176933
 
I dont exactly know how this proc can work I know that the arguments want OBJ,TARG,LAG but I dont know how to tell the compiler that I want the player to be the targ.

mob
Warrior
icon = 'person.dmi'
icon_state = "darian"
density = 1
walk_towards()

please help
Ok, first. The way you have it layed out will simply override the walk_towards proc for mob/Warrior. What you want to do is have it so that it looks something like this.
mob
Warrior
var/mob/target //Create a variable that it will use to tell who to go towards.
//All the normal stuff.
icon = 'person.dmi'
icon_state = "darian"
density = 1
//Now we override the New() proc for /mob/Warrior.
New()
..() //Do what New() normally does.
spawn(30) //3 Seconds after a new mob/warrior is made, make it call its WarriorAI() proc.
WarriorAI()
proc
WarriorAI() //Create the WarriorAI() Proc.
for(var/mob/M in oview(7)) //Do the following for every mob in oview(7)
if(M.client != null) //If the mobs client variable isnt null (If its a player)
src.target = M //Make M (The Player) the Warrior's Target.
step_towards(src, src.target) //Take a step towards the target.
spawn(20) //Start the cycle again.
WarriorAI()


Thats very simple, and not that efficient. You should research for(), New(), spawn(), step_towards() and client.
-DogMan