ID:263035
 
Code:
var/mob/a = new/mob/units/soldiers/droid(usr.loc)


Problem description:
As soon as i call this line of code it ends the verb its used in. like:
world << "hi"
var/mob/a = new/mob/units/soldiers/droid(usr.loc)
world << "bye"

out puts "hi", but not "bye"

What gives?!?!


Try
var/mob/units/soldiers/droid/a=new(usr.loc)
My guess is that the droid has some kind of loop in it's New() proc that you forgot to spawn. If you don't spawn it, New() doesn't return, so it's kind of stuck on that line waiting for it to finish. But like I said, it's an easy fix, just spawn the process that you run in /mob/units/soldiers/droid/New(), which is most likely some kind of AI proc.
In response to DarkCampainger
Thank you very much! this has been bugging me for some time now.