Jump to content
Sign in to follow this  
JohnKalo

Hostiles won't get in buildings!?!?

Recommended Posts

Well I was editing a new mission the other day and I came to the point where I was trying to get some hostiles to get in buildings. So I tried the get in nearest building command and it didn't work. I used ID commands but that didn't work either. I even tried placing move waypoints on the buildings but the hostiles would just not get in. Sometimes they were deployed in a nearby hangar and other times they just vanished.:confused:

All of the above happened at the Airports of the Takistan map.

So if anyone can give me a clue of what is happening or even advise me on how to place soldiers in the particular buildings, please do.

P.S. The same commands that I have used in other maps tend to work.

Share this post


Link to post
Share on other sites

In case the regular methods with buildingpos statements and waypoints do not work, use simple setpos statements to place the units manually at specified heights.

I even tried placing move waypoints on the buildings but the hostiles would just not get in. Sometimes they were deployed in a nearby hangar and other times they just vanished.

If a group of AI is given a move waypoint to a specified position in a building, this tends to cause them to occupy the very same spot. It is not only the AI leader occupying the position, but also his subordinates.

Regards,

Sander

Share this post


Link to post
Share on other sites

Many thanks for the reply Sander.

In case the regular methods with buildingpos statements and waypoints do not work,

Yes the buildingpos statement didn't work well enough. Due to the fact mentioned in the first post.

use simple setpos statements to place the units manually at specified heights.

Tried it and it worked. Although it is quite a burden to place hostiles as such.

Now it would really be convenient to use the IDs by some sort of way. All my efforts have failed sadly.

Something like this, with an ID in the place of the name of the building.

_soldier setPos (_house1 buildingPos 2)

So any help will be appreciated.

Share this post


Link to post
Share on other sites

I usually use this script for my missions:

http://forums.bistudio.com/showthread.php?76423-Random-House-Patrol-script-v1-0

You have to set the units down near the buildings with the script in the units init box.

Just found this:

http://community.bistudio.com/wiki/setWaypointHousePosition

Maybe this is what you are looking for.

Please post your results when you find an answer.............

Share this post


Link to post
Share on other sites

I don't know why they don't get in the buildings. But I have some other options to get them in houses/buildings.

You can place them in buildings with the setpos command

player setPos [ getPos this select 0, getPos this select 1, (getPos this select 2) +10] [/Code]

Or

I usually use UPSMON for my mission's so most of the time its random.

http://forums.bistudio.com/showthread.php?91696-UPSMON-Urban-Patrol-Script-Mon

But there with UPSMON they sometimes turn there backs to doors etc. So its easy too shoot them.

if you need somting that makes units guard doors etc. this may work better.

http://forums.bistudio.com/showthread.php?125014-Garrison-House-Area-Script

Share this post


Link to post
Share on other sites

Guys thanks for the help but I am currently quite busy.

Once I find the time I will check which of the above will work or not and I will be back with feedback.

----------------------------------------------EDITED---------------------------------------------

I have made some tests and here are the results:

Nope. It didn't fully work. I mean I set waypoints but what the AI did was climb the ladders of the building yes but get in the interiors no.

You can place them in buildings with the setpos command

Code:

player setPos [ getPos this select 0, getPos this select 1, (getPos this select 2) +10]

This one didn't work either with the particular building of interest.

if you need somting that makes units guard doors etc. this may work better.

http://forums.bistudio.com/showthrea...se-Area-Script

Thanks but not interested.

And we just go on and on. As it seems there must be some kind of problem with the particular building. I mean in other buildings the commands that I have checked work.

(the building is the airport tower at the Takistan map)

Last but not least, is there a way to use a building's ID to make someone get in it?

Edited by Helicopterenthusiast

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  

×