MouseDrop((tr as target, 0 lag))
walk_towards(src, etc)
Problem description:
You see, what I'm trying to do here is make it so that when you drag a unit to a location, it knows to go there. So, I crafted this in hopes it was working, which you guys should know if it does. Thanks again!
We should not know if it is working as well as you should since you have (I hope you have anyway) compiled it and run it if it compiled properly. Also, you have not said what your problem is, or even that you have a problem at all.
Now, with my tremendous powers and level 9 spells, I shall read your mind and extract the information that we need to help you...
Both the syntax and usage do not look right.
Look up the reference entry for MouseDrop(). Notice the format: MouseDrop(over_object,src_location,over_location,src_control ,over_control,params) You can also see a detailed explanation of what each of the parameters is for.
Try that out, and play with it by dragging random objects around and dropping them onto other things.
walk_towards() has (as per the reference entry for it) a format of walk_towards(reference, target, lag=0). So you would do walk_towards(thing_to_walk, target_to_walk_to, optional_lag), or, in your specific situation, you probably want something more like walk_towards(src, over_location, 1), or maybe walk_towards(src, over_object, 1). That second version (with src, over_object, 1) should cause the unit to continually follow an object around while the first version (with over_location) should make it just walk to the current spot and stop, even if the targeted object left that spot.
I hope this helps.