50.cal 10 Posted September 13, 2009 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
Binkowski 26 Posted September 13, 2009 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
50.cal 10 Posted September 13, 2009 (edited) 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 September 13, 2009 by 50.cal Share this post Link to post Share on other sites
Door a jar 0 Posted September 13, 2009 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
50.cal 10 Posted September 13, 2009 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
rothy 0 Posted September 13, 2009 Best way to do it is to use RTE for ArmA2. http://forums.bistudio.com/showthread.php?t=85766 Share this post Link to post Share on other sites
speeder 0 Posted September 14, 2009 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
50.cal 10 Posted September 14, 2009 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