Src: The object or person in which the proc or verb is called on.
???: The person or object which initiated the proc
My proposal is to create a variable that would represent the person who initiated the proc that way you can refer back to them, because now a proc sent to the other person is mostly used in the perspective of M instead of src. It would be nice if I could use a proc on M using src's perspective.
Code Proposal:
mob/var
debug
mob/var
Example(mob/M in world)
M.debug=1
M.Test()
mob\proc
Test()
if(src.debug)
src<<"[???] sent this to me"//The person who recieved the proc is talking
???<<"I sent this to [src]"//the person who initiated the proc is talking
return
You set up test with a mob parameter.
mob/proc/Test(mob/m)