Jump to content
Sign in to follow this  
scottb613

Define a position relative to another position ?

Recommended Posts

Hi Folks,

Working on diving deeper into the arcane art of Arma Scripting...

I've searched and looked at the scripting wiki functions before posting...

If I have a defined position - can I define a new position relative to my first - such as 500 meters north and 250 meters west ?

Thanks !

Regards,

Scott

Sent from my iPad using Tapatalk

Share this post


Link to post
Share on other sites
_newPosition = _sourcePosition vectorAdd [-250,500,0];

Or if you know the direction you want to go:

_newPosition = _sourcePosition getPos [_distance, _direction];
  • Like 2

Share this post


Link to post
Share on other sites

Hi...

Perfect - I think it's just about knowing which commands to look at... Let me give this a shot...

Thanks...

Regards,

Scott

Sent from my iPad using Tapatalk

Share this post


Link to post
Share on other sites

Oh look, yet another stoneage command that recently got updated with fancy new functionality and I didn't even notice it.

Thanks for pointing that one out. :D

 

Bummer that those updated commands don't show up when filtering for newly added features in the wiki.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×