client
var
xargto=7
yargto=7
mob
var
xargto=7
yargto=7
owner=(null)
Crosshair
var
xarg=7
yarg=7
icon='crosshair.dmi'
New(client/C)
// var/mob/M = C
screen_loc= "[xarg],[yarg]"
C.screen+=src
src.owner=C
spawn(1) UD()
proc
UD()
src.xarg=owner.xargto
src.yarg=owner.yargto
src.screen_loc= "[src.xarg],[src.yarg]"
spawn(1) UD()
Problem description:
I cant get it to read the mob's owner's vars, and I need it to do it.
It says the vars are undefined, but I tried defining them both under client and mob
Could someone help me?
You really need to explain what you're talking about from the point of view of someone who doesn't know what you're doing.
You said that "I cant get it to read the mob's owner's vars" but you haven't said where you can't do it and what the mob's owner is.
I'm going to assume you meant the mob/var/owner variable and you're talking about the proc mob/Crosshair/New(client/C). In which case, you want do do C.mob.owner.