Jump to content
Sign in to follow this  
50.cal

How to put a static defence on a building?

Recommended Posts

Not sure if it's the right place to ask...

Anyway I'm trying to set a M2 on the top of a building but for some reason it stays on the ground whatever I do.

Am I mission something or is it simply not possible?

Thx

Share this post


Link to post
Share on other sites

Use the setPos command.

By the way, this should be in ArmA2 : Editing / Mission Editing & Scripting.

Share this post


Link to post
Share on other sites

Yeah I've just realized it was actually the wrong place to ask...

Thx for the tips I'll try that :)

Something I don't get is why does this work perfectly when I use a unit and not when I use a static object?

Edited by 50.cal

Share this post


Link to post
Share on other sites

It's actually been that way since Operation Flashpoint. For some reasons static objects snap to ground level, but soldiers snap to the highest surface level they are placed on.

to put static units on a higher level you have to use setpos, likewise you have to use setpos if you want your soldiers to be set up in positions inside of a building instead of just on the roof.

Share this post


Link to post
Share on other sites

ok but how do I know the current pos? could you please make an example to base myself on?

Share this post


Link to post
Share on other sites

In the INIT line of the object:

this setpos [ getPos this select 0, getPos this select 1, y];

Where y = height of the object

Have fun.

Share this post


Link to post
Share on other sites

I didn't try these things so far but I'll give it a go as soon as I'll have some time to experiment the scripts.

Thanks for the tips.

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  

×