Jump to content
miasdad

Tilt object on its side(setVector command doesn't want to play)

Recommended Posts

Hi,

I'm making an apocalyptic-style mission and want to insert an LHD/Carrier but spawned lying on its port/starboard side.Trying the setvector command but it spawns upright still.

Share this post


Link to post
Share on other sites

Make sure you are using setVectorUp. That's about as far as I can help you with that command, as I don't understand it either. However there is a much better BIS function for this, BIS_fnc_setPitchBank. It does all of the trigonometry work for you. You will want to set the "bank" parameter to have the object lying on it's side

  • Like 1

Share this post


Link to post
Share on other sites

Thanks for reply but didn't work.Still upright using this [ship, 45, -45] call BIS_fnc_setPitchBank

Share this post


Link to post
Share on other sites

[ship, 45, -45] call BIS_fnc_setPitchBank is what I put in the boats init.Is it wrong?I'm somewhat new to to manipulating objects via scripting somewhat.Used to editors that allow you to manipulate every object with just a mouse(BF2 for example).

Share this post


Link to post
Share on other sites

Yep.Here I was thinking placing the oil rig was going to be a headache but it fit perfect.Thinking about scrapping the LHD for the battleship Iowa since it ALWAYS spawns on its starboard side without fail!

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

×