ID:178623
 
mob/verb/test()
usr.blood()

mob/proc/blood()
var/obj/blood/T
T = new /obj/blood
T.loc = usr.loc


runtime error: Cannot modify null.loc.
proc name: blood (/proc/blood)
usr: Sariat (/mob/man)
src: null
call stack:
blood()
Sariat (/mob/man): test()

Thats the error that I get. I tried making the blood proc like this:

proc/blood()
//etc

But still no luck.

Thanks for reading.

ST
You can set location using the new proc like this:
new /obj/blood(usr.loc)

Why not try that?
blood() is a proc, not a verb. usr doesn't mean anything here. Change it to src, and it should be fine.
In response to Skysaw
I do not understand why everyone keeps saying only use usr in verbs. I still use usr in my procs and it works just fine. I have never had one problem using usr in a proc.
In response to Loduwijk
Loduwijk wrote:
I do not understand why everyone keeps saying only use usr in verbs. I still use usr in my procs and it works just fine. I have never had one problem using usr in a proc.


You will, once you start getting into large multiplayer tests.