ID:269294
 
I havn't messed with spawn a whole lot, so could someone help me with this? I need a verb that spawns an enemy next to you after taking you to a map. This is what I have so far:

mob
enemy
icon = 'icon.dmi'
New()
.=..()

You
icon = 'you.dmi'
Login()
..()

verb
Train()
usr.Move(locate(1,1,3)
var/mob/enemy/E = new(locate(2,1,3))

Any suggestions?
mob/Login()
src.loc=locate(/turf/start)//or something
src.icon='you.dmi'
mob/enemy
icon='icon.dmi'
mob/verb/Train()
usr.loc=locate(1,1,3)
var/mob/enemy/E=new(usr.x-1,usr.y,usr.z)

I haven't tried this myself. See if it works.
In response to Jay1
E.E I figured it out. i was using it as a var, when it should have been this

new/mob/HIM/Red_Hot_Chili_Pepper(usr.x-1,usr.y,usr.z)