Jump to content
Sign in to follow this  
calo_mir

Placing fences

Recommended Posts

There are a few industrial wire fence pieces available (Empty -> Objects -> Fence Industrial).

Anyone got a smart way to place a long line of them? Sitting there trying to make micro adjustments to get a straight fence and unbroken continuous wire is too time consuming.

Also... there doesn't appear to be an end post for the fences despite one appearing in game (the northern entrance to the airfield on Utes, on the eastern hill).

Share this post


Link to post
Share on other sites

I've a long workaround, but functionnal : the 3D Editor.

From main menu, press Alt-E, select the island, you'll end up in 3D Editor.

Create anywhere a "Center", a groupe belonging to this center and a player unit belonging to this group (that's for the editor to accept saving the mission).

After that, put in 2D map a Fence where you need your wall, then switch to 3D (the camera will have been placed near the last object placed, ie your fence), and you can position perfectly in real time your fences to get the desired effect

Save the mission with any fitting name, go into your My Doc\ArmA2 Other Profiles\<nickname>\missions\<name of the mission>

You'll find a mission.sqf there

remove from this script the lines talking about ambient life, center, group and player unit, initcommands processing and such to only keep the commands that dynamically create your fences.

Copy/paste this mission.sqf into your target mission folder, rename it to something fitting, and execute it from init.sqf.

Long, but shorter than endless placement in 2D ;)

an example of the script derived from a 3D Editor mission.sqf :

http://dev-heaven.net/repositories/entry/whis-maas/CTB_Windy_Mountain_b01.Chernarus/server/sceneries.sqf

Hope this helps ...

Edited by whisper

Share this post


Link to post
Share on other sites

I played with a section Until I got it right, then made a trigger the size of the 2 sections and used that as a guide for making the rest of the fence.

Share this post


Link to post
Share on other sites

Here's my 3d editor attempt. I couldn't get it to work very well on slopes.

This is a continued fence perimeter around Utes airport. It's a little rough in some areas because of the change in elevation but it's better than having just the partial fence.

Just add the utesfence.sqf file to your mission folder and in your init.sqf file add

execVM "utesfence.sqf";

Utes airport fence perimeter

utes%20fence.jpg

Share this post


Link to post
Share on other sites

Thanks for the suggestions, all.

I may attempt to write something in an external language that writes a list of objects that can

be copied and pasted into mission.sqm to do this.

Share this post


Link to post
Share on other sites
Here's my 3d editor attempt. I couldn't get it to work very well on slopes.

While the 3D editor show proper angles on slopes, it doesnt actually save them. Unfortunetly that makes the 3D editor fairly useless on rough terrain.

Share this post


Link to post
Share on other sites
While the 3D editor show proper angles on slopes, it doesnt actually save them. Unfortunetly that makes the 3D editor fairly useless on rough terrain.

You need a lil bit more work on this, as you'd need to make smtg like

this setPos position this

in the init line of all objects. That will make them stick to sloppy ground

Share this post


Link to post
Share on other sites

Nevermind. I didn't read the above right.

Edited by Rancmeat

Share this post


Link to post
Share on other sites
Anyone got a smart way to place a long line of them?

Sure. I've written fn_spawnObjectChain.sqf which you may find in my always wip library (over here, top left) which works reasonably well, as long as the ground is more or less even. It relies on some other RUBE functions, but you may take what you need...

Putting down fences is quite a bitch on steep terrain.. you can't really tilt them according to the ground or else they wont align anymore or you'd need to burry them too much, aligning a row togehter, while the edges still wouldn't align... baaah :936:

Share this post


Link to post
Share on other sites

You should answer my question, because the rest is half a year old. :P :D;)

Share this post


Link to post
Share on other sites
You should answer my question, because the rest is half a year old. :P :D;)

aaahahaa... :|

Diggin' up old threads, aren't we? :D

Anyway, you may try to get the object with a command like nearestObjects and try a typeOf on it. If you have a classname, you may easily spawn it wherever you need with a call to createVehicle.

Share this post


Link to post
Share on other sites

Yep, thats the problem. It's not in the editor and I can find it in any "class list" either. Maybe I can only palce it in an island creator?

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  

×