Jump to content
Sign in to follow this  
Kinakin

Machineguns in buildings. how?

Recommended Posts

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

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

firefoxlover.gifsmile_o.gif

Share this post


Link to post
Share on other sites

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

Told you it was easy, Kinakin. wink_o.gif

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
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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×