Jump to content
Sign in to follow this  
Hachiman

Place enemy AI inside houses.

Recommended Posts

Is it possible to place enemy AI inside of houses and buildings when using the editor?

Share this post


Link to post
Share on other sites

this setPos [(getPos this select 0),(getPos this select 1),1.5];

put this in the unit's init line. play around with the 1.5 for height of the unit.

btw, this probably should go in the mission editing/scripting section ;)

Share this post


Link to post
Share on other sites

Maybe you mean this?

And yes, scripting section would be a quicker and safer way to get an answer... :)

Share this post


Link to post
Share on other sites

Thanks for the quick reply's guys, your help is much appreciated.

Share this post


Link to post
Share on other sites

There is also a script available that not only places AI inside buildings but also lets them patrol around in them.

It's called something like HousePatrol, you might want to look that up.

Just place a execution sentence in the init line and place the unit on the building you want them to patrol in.

Alternatively you can place them right outside but they will be 'pulled' or teleported into the building anyway.

Share this post


Link to post
Share on other sites
There is also a script available that not only places AI inside buildings but also lets them patrol around in them.

It's called something like HousePatrol, you might want to look that up.

Just place a execution sentence in the init line and place the unit on the building you want them to patrol in.

Alternatively you can place them right outside but they will be 'pulled' or teleported into the building anyway.

This sounds very interesting, I will research the HousePatrol script right now. Thanks.

---------- Post added at 06:46 AM ---------- Previous post was at 04:55 AM ----------

I downloaded the Random House Patrol script v0.9 by Tophe from Armaholic website and the ReadMe says to put the script in my mission folder and write guard = [this] execVM "HousePatrol.sqf" in the initialization field of the unit then place the unit close to a enterable house.

I tried putting the script in this folder - C:\Program Files\Bohemia Interactive\ArmA 2\Missions but I get the following error message when I Preview my mission in the editor - Script HousePatrol.sqf not working

Am I putting the script in the correct folder?

Share this post


Link to post
Share on other sites
I believe it goes in the folder of the mission you are working on in the editor.

Could you explain how to do that please. :)

---------- Post added at 09:37 AM ---------- Previous post was at 08:12 AM ----------

OK I finally found where the editor mission folders are located. My Documents\ ArmA 2\Missions.

Share this post


Link to post
Share on other sites
Could you explain how to do that please. :)

---------- Post added at 09:37 AM ---------- Previous post was at 08:12 AM ----------

OK I finally found where the editor mission folders are located. My Documents\ ArmA 2\Missions.

Yep, that is correct.

Or, ArmA 2 Other Profiles, there are 2 different folders i think.

Inside there, you can find folders for each of your profile, in my case a folder called SiC.

Inside that folder i can find all the missions i made in the editor, and inside those mission folders you should place the script-file.

I made a few missions using that script, but there is an occassional bug of a soldier getting stuck inside certain buildings, which causes them to suffer damage and sometimes they even die.

But in most cases it works perfectly, they can even climb ladders in buildings with this script.

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  

×