+xarija Posted November 5, 2020 Posted November 5, 2020 This is my first go at Urwigo and I have no experience in programming. After some time I managed to construct a cartridge that works, but I am not happy with the layout of one part. I have calculated the distance between two points using the Lua user expression: Wherigo.VectorToPoint(Player.ObjectLocation,Zonepoint) and got following output: distance(233.015451651, 'm'). Instead I would like to get only 233.015451651, in other words I'd like to get rid of the words distance and 'm'. Some assistance would be appreciated. Quote
+Hügh Posted November 7, 2020 Posted November 7, 2020 I'm under the impression that this is how the Distance object handles this. local dist = Wherigo.VectorToPoint(Player.ObjectLocation, Zone) print(dist("m")) -- 233.015451651 Quote
+Forest-Ghost Posted November 8, 2020 Posted November 8, 2020 There's a function in Urwigo "Distance to a Zone" which can be used to show the distance between two zones. The distance is displayed as a numerical number without the added label. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.