Jump to content

Distance


xarija

Recommended Posts

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.

Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...