Hi all,
I'm trying to make a script that adds an action when you get close to an object pre-placed on the map (like a house). I know how to add the action, but its the other bit i'm stuck on.
In the comref, it says this:
Command :
Distance
Description :
Used to find the distance between 2 units/objects.
Syntax :
Name1 Distance Name2
Name1 is the name of a unit or object.
Name2 is the name of a second unit or object
Returns :
Distance in meters between Name1 and Name2.
Example:
?(MyGuy Distance MyLeader > 300):MyLeader SideChat "Get over here!"
But that doesn't say what to do if you want Name1 to be the player, and Name2 to be one of the pre-placed objects.
I tried:
?(Guy1 Distance Object 25344 > 50):Guy1 sidechat "bah"
But it didn't work.
Was I on the right lines, or is it something completely different?
Thanks.