Kinakin 0 Posted April 28, 2007 ok I tried putting a m2 in a house that is in the map by default, issues im having are as follows. It only lands in the ground floor. even if there is no ground floor. so Im wondering is there a way to change the altitude of the object? also I was thinking maybe I could use the http://community.bistudio.com/wiki/buildingPos command to place it but I dont know how to give a spesific building a name. In perticular houses that are placed tehre by default. could someone help me on this ? been searching in forums with no luck. Share this post Link to post Share on other sites
Flat!!! 0 Posted April 28, 2007 Well there is a pretty easy way to do it altho it requires trail and error. Type this into the init field of the MG <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">this setpos [getpos this select 0, getpos this select 1, 14] Where it says 14 you type how high the mg should stand. A hotel roof is 14. Only thing is that if the building breaks the MG will float in the air. Hope this helps Share this post Link to post Share on other sites
Big Dawg KS 6 Posted April 28, 2007 You could use buildingPos to use specific predefined locations on the building, but I wouldn't reccomend it for objects (just infantry). Also, you can simply delete the objects when the building is destroyed, since such objects would likely be destroyed with the building should the situation occur IRL anyway. Share this post Link to post Share on other sites
RedStorm 0 Posted April 28, 2007 Told you it was easy, Kinakin. General rule-of-thumb is, use the set position, or "setpos" command for height, use general editor placement for long-/latitude. this setpos [getpos this select 0,getpos this select 1,4]; Will place an object four meters above ground-level (note: NOT sea level) adjust the 4 in that code snippet to any other value for any sorted height. I can send you a mission over MSN that has the entire Corazol border populated and guarded with quite a few "setpos" commands used. Share this post Link to post Share on other sites
mattxr 9 Posted April 28, 2007 Doesnt work on dedicated servers though. Share this post Link to post Share on other sites
Kinakin 0 Posted April 29, 2007 well thank you all for the help =) worked out good. Share this post Link to post Share on other sites
Big Dawg KS 6 Posted May 1, 2007 Doesnt work on dedicated servers though. Yes it does, MGs don't use a static object simulation. Share this post Link to post Share on other sites