Jump to content
Sign in to follow this  
Herr Doktor

Different position in mission.sqm for setpos

Recommended Posts

I'm making a high detailed mission for OFP. To prevent that the mission need to much performance with many object the mission will be loaded in small parts so most of the object, vehicles, soldiers and stuff like that will be created and deleted during the game.

A screenshot which I took from my mission:

OJJ2.JPG

Unfortunately the position details in the mission.sqm file

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">for example position[]={9604.596680,29.834999,4012.663818}

are different in the game when I use them with the setpos order <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">setpos (9604.596680,4012.663818,29.834999)

I mean that the object isn't created at the same position crazy_o.gif . Or have the setdir order and the azimut values different computing basis?

I created a small test mission to show you the problem.

You can download it here:

testmission

Do you know how I can fix that?

PS. Sorry for my bad english

Share this post


Link to post
Share on other sites

yes, create them on position [0,0] and setpos them after that to the position you want. createVehicle does not create objects on the exact position.

and you can leave away most of your numbers there, 1 digit after the comma is enough.

Share this post


Link to post
Share on other sites

Thank's smile_o.gif

I will trie that out.

But why does OFP not create the objects at the exact position. I mean the position is exactly the same as the mission.sqm file use?

Hmm very strangely...

Share this post


Link to post
Share on other sites

well, ofp does many strange things... wink_o.gif that's why we lova it: you can play a simple mission, but often ofp does things in a very different way. and if you can speak german and still have questions, visit mapfact's forums (see my signature).

Share this post


Link to post
Share on other sites

Sehr gut smile_o.gif

I will see you at mapfact's forums. After OFP do another crazy thing with me.

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  

×