Jump to content
Sign in to follow this  
hcpookie

modelToWorld behavior change since 1.60

Recommended Posts

I use this command to place objects in an absolute position in the map:

this setPos (this modelToWorld [0,0,3.75]);

Previous 1.59 Behavior:

Object height (Z-axis) would remain fixed in the 3D world.

Current 1.60 Behavior:

Object will fall to the ground. Z-Axis is not remaining fixed in the absolute position.

Is there a new way to use "modelToWorld" or fix Z-axis location? Or is this a bug?

Share this post


Link to post
Share on other sites

Working as expected for me, barrel/pallet stays in the air.

Edited by F2k Sel

Share this post


Link to post
Share on other sites

Hrm that's interesting. I have done more testing and still get the same behavior. I even edited out the startup parameters I normally start with - from this:

G:\Arma2\arma2oa.exe -nosplash -world=empty -skipintro -showScriptErrors

to this:

G:\Arma2\arma2oa.exe

and no change.

I updated the CIT bug with a sample mission as requested. I also made absolutely certain I'm not running any mods. I just installed a clean install for a friend who got A2 for Christmas... I can see if he has the same behavior on his install.

Edited by hcpookie

Share this post


Link to post
Share on other sites

I still have a version of arma2 1.05 as well as the latest AO installed and barrels fall, palletes do not in all versions.

If you want a barrel or most objects to stay put use attachto either by using it's own x,y,z co-ords or releative to current position.

using a gamelogic named gl and then place the following in the objects init that you want to stay put

this setPos (this modelToWorld [0,0,9.75]);this attachto [gl]

You could of course just use attachto in the usual way.

Game logic gl

Objects init

this attachto [gl,[0,0,10]]

That would place it ten meters above the game logic.

Share this post


Link to post
Share on other sites

Barrels are thing class they have always fallen , apart from one patch in arma 1 wher the physics didnt kick in till ya shot it

maybe object enableSimulation false will work i never tried it

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  

×