ID:149431
 
ok heres my problem i have a turf that i want to spawn into a mob to attack and walk around.

turf/Unknown_Soldier
icon = 'boss1.dmi'
verb/Talk()
set src in oview(1)
usr<<"I'M GONNA KILL YA!!"
spawn()
new/mob/Unknown_Soldier

thats what i have so far.

what do i do to make it delete the turf and spawn a mob in its location?
new/mob/Unknown_Soldier(src.loc)
del(src)
In response to Super16
ok it deleted the turf but spawned the mob at my starting point rather than at the place the turf was. how do i fix this?
mob/var/us=0

area
attacked
Enter()
if(usr.us==1)
usr<<"msg"
else
spawn(1)new/mob/Unknown_Soldier(locate(usr.x,usr.y+2,usr.z))
usr.us+=1
usr<<"Im gunna kill ya"
Alienman22774 wrote:
ok heres my problem i have a turf that i want to spawn into a mob to attack and walk around.

turf/Unknown_Soldier
icon = 'boss1.dmi'
verb/Talk()
set src in oview(1)
usr<<"I'M GONNA KILL YA!!"
spawn()
new/mob/Unknown_Soldier

thats what i have so far.

what do i do to make it delete the turf and spawn a mob in its location?

You should never delete a turf; it's a map tile, and something needs to be there. What you should do instead is spawn a new turf at that same location, if you intend to replace it.

Lummox JR
In response to Alienman22774
new/mob/Unknown_Soldier(locate(usr.x,usr.y+2,usr.z))
ok once you load the mob then how do you make it run a mob proc like Wander() for example
In response to Thrain
the new proc should do it
New()
wander()
then your wander command. it gets ran at new. something like that should work