OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Egogon on 22 Mar 2008, 22:58:46
-
Is there a way of getting AI troops to use the roofs of buildings, or even climb the ladders onto them? Would it be possible to start the mission with them already on there (assuming that the roof has access via ladders or similar).
I can't find much on this subject, but I may of missed something!
Cheers,
-
Hi.
Put this in the init line of the unit:
this setpos [getpos this select 0, getpos this select 1, 10]
This will position the unit 10 meters above original level. In the air if no building is present. Try adjusting that last number to fit your purposes.
In ArmA units will sometimes climb ladders automatically, if the waypoint is placed correctly on the building. Try this to.
Some buildings (the big hotel for example) has building position numbers that units can go to. Place the waypoint on top of the buildings name in the editor, open up the waypoint for editing and choose house position. Sometimes these building poition numbers also include the roof.
Cheers
Laggy
-
Nice one. :good:
I'll give it a go.
Ta,
-
Thanks from me as well...to the both of you. I was just going to ask this question and lo and behold, both question and answer were already here. :good:
-
I used this on a mission I started working recently, made a little Civilian Camp inside a couple wrecked buildings.
Cheers.
-
Also, if you want the AI to use buildings of its own accord, such as sending men to clear houses and to gain vantage points during a fire fight, try the ECS mod, has v recently come out and improves the AI in many ways...