Jump to content
Sign in to follow this  
Bourne

setpos - Placing objects on top of others?

Recommended Posts

Ok, Newb here. I have search for the past hour and I'm having issues.

All I want to do is place a target on top of a building....should be simple correct?

I've tried scripting it in but alas, no final product.

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,10]

10 is the height in meters, you need to play with the value until the object is in the correct position.

Note: setPos for static objects like a ammo crate do not work in MP.

Share this post


Link to post
Share on other sites

Thank you!, I had a very similiar line but without the getpos.

Share this post


Link to post
Share on other sites
Note: setPos for static objects like a ammo crate do not work in MP.

I thought that was fixed back in ArmA1??

Share this post


Link to post
Share on other sites

Well, it's actually still floating...but at least I have it in the air now.

Share this post


Link to post
Share on other sites

Well, here's a trick I learnt, but not sure if it works for anything but units...

In the init field, just write this flyinheight x where 'x' is any height above the building's top, i.e. this flyinheight 500 will set the unit ON TOP of the building as long as the number given is a height greater than the building - it places the unit on the first surface present from the height given, downwards.

Hope this helps :)

Edited by HateDread

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  

×