sego Posted August 11, 2014 Report Share Posted August 11, 2014 I have an objects ID and i can use getPos. I need to use call BIS_fnc_findSafePos; to find a new location and then how can i set that position to that object. I need that change to happen while the game is running and now after a restart. Link to comment Share on other sites More sharing options...
0 Glenn Posted August 11, 2014 Report Share Posted August 11, 2014 Can you give a bit more context on what it is you are trying to do? Best example of explaining what BIS_fnc_findSafePos do can be found here: http://tactical.nekromantix.com/wiki/doku.php?id=arma2:scripting:bis_fnc_findsafepos Now, depending on what you are actually trying to do, you may find that using BIS_fnc_findSafePos might not suit your purpose. Link to comment Share on other sites More sharing options...
0 Kar Posted August 11, 2014 Report Share Posted August 11, 2014 I'm guessing you're trying to move an object, just go to the position you want in game, log out to lobby, write down your character's worldspace from the database, wait till next restart. Paste the worldspace into whatever object you want and it will be exactly where you logged out, including the direction you're facing. Link to comment Share on other sites More sharing options...
0 sego Posted August 11, 2014 Author Report Share Posted August 11, 2014 I want to move a safe. I have its selected in my code but i want to move its location. Kar thats not what im talking about. I need a safe to move when my event happens Link to comment Share on other sites More sharing options...
0 axeman Posted August 11, 2014 Report Share Posted August 11, 2014 SetPos will move it. https://community.bistudio.com/wiki/setPos Link to comment Share on other sites More sharing options...
0 sego Posted August 11, 2014 Author Report Share Posted August 11, 2014 Thanks Link to comment Share on other sites More sharing options...
0 sego Posted August 23, 2014 Author Report Share Posted August 23, 2014 How do i set this it to a random location on charnerus Link to comment Share on other sites More sharing options...
Question
sego
I have an objects ID and i can use getPos. I need to use call BIS_fnc_findSafePos; to find a new location and then how can i set that position to that object. I need that change to happen while the game is running and now after a restart.
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now