Calling Move() through another obj... in Developer Help
|
|
I've got little RC cars, and I was wondering how I'd call its Move() proc using src's move data while they're "driving" it.
mob Move() if(src.isdriving) for(var/obj/inventory/rccar/R in world) R.Move(???) return 0
|
|
Well, I don't want to ignite a controversy, but I can tell you that some scientists have speculated on the existence--hypothetical, mind you--of "arguments" that procs may use to receive data. Some have even gone so far as to suggest that certain procs had known arguments, that were compiled in some sort of "reference". The most radical members of this camp theorize that Move() may have had as many as two arguments, telling it where the atom would go and, optionally, what direction it should face.
You could use those arguments, assuming of course that they exist, but surely there must be a more orthodox solution. Keep looking!
Lummox JR