Jump to content
Sign in to follow this  
matteo1944

trouble placing units inside building

Recommended Posts

I know I've been boring you all for a while now,but I can't get this to work...

I'm using that manual about mission editing,I've tried all those init lines,and all I get is bunch of troops placed either in the middle of the sea,or in the desert (depends on the map).

Any help is welcome,and I tried every solution posted on this forum,none of them worked...

thanks in advance!

Share this post


Link to post
Share on other sites

Hey

Look at BuildingPos in the wiki. I used it in OFP and it works fine.

Share this post


Link to post
Share on other sites

Thanks for posting this Zulu,but still nothing,here is the line I used in my attempt of placing insurgents inside building :

this setPos (nearestBuilding this buildingPos Random 265) or placing this unit in a random position.

Share this post


Link to post
Share on other sites

If you want them to go in a specific building use (object xxx) buildingPos 1 (2 or 3...).

Share this post


Link to post
Share on other sites

Matteo;

Here are some usage examples I have.

this setpos ((object 20749) buildingpos 4)

the AI will appear directly where i need (i can setdir it later to get an orientation)

or

this move ((object 20749) buildingpos 4);

or if the AI is in formation

this domove ((object 20749) buildingpos 4 );

buildingPos [building2, 1]

unit setPos ((object 21222) buildingPos 1)

this move (building buildingPos 1)

this move (bunker1 buildingPos 1)

You can do this also with a waypoint. Drop a waypoint from your unit to an empty spot on the map. Then zoom way in on the map and move the waypoint over the building until you see "House" appear then release it. Now reopen the waypoint and you'll see a building positions selection drop down. It's best if you position the unit close to the entrance.

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  

×