Jump to content
Sign in to follow this  
Winters

Question about buildings and positions inside

Recommended Posts

Hi Guys & Gals,

I searched "Houses" and i searched "Starting in Buidlings" and was unable to locate the answer. I even tried searching page by page but i gave up after page #30.

Here is what i need to do.

I want to be able to start a unit inside a building at one of the buildings positions inside. I know how to use setpos to set up a height (like in the towers) and i know how to create a waypoint in the house for a guy to move to but, what i really need is for them to start at that position and not move to it.

The city hall building in Lipany has 29 positions inside it and when i have the guys run into the building there are always a few who block some of them from moving and you end up with 5 guys standing in the same place and even some guys who end up getting "pushed" into the walls.

any ideas? thanks for any help you can offer.

Share this post


Link to post
Share on other sites

If you want them to just stay where they are, use:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">dostop this<span id='postcolor'>

or:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">this disableai "move"<span id='postcolor'>

Although you can't undo that, so if you want to undo it use:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">this stop true<span id='postcolor'>

And to make him move again use:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">unitname stop false<span id='postcolor'>

[Edit] And if you want them to do this once they've reached a waypoint, use the OnActivation part of the waypoint. wink.gif

Gameer smile.gif

Share this post


Link to post
Share on other sites

Hi Gameer,

I really need for them to start at the postion in the building and not move to it. When you send in 29 guys to a building with 29 positions they keep getting in each others way.

Share this post


Link to post
Share on other sites

Oh, right! smile.gif

Well, the only way to do that is to setpos I think, unless you setacctime but that might be more trouble than it's worth wink.gif

If you use camera.sqs, then you can get precise positioning of the unit. (Search if you don't know what it is, or ask if you can't find anything wink.gif )

Gameer

Share this post


Link to post
Share on other sites

Setpos will be extremley tedious to do when you have 29 guys you want to place in a building. hmmmm, i guess i can just space them out on the ground better and delay them going in the building so they dont get in each others way.

Is it not possible to camcreate a unit at the desired position inside the building?

Share this post


Link to post
Share on other sites

You'd still need to find the correct co-ordinates.

You can't find the position of a house-waypoint, sadly. sad.gif

Unless you getpos a guy and find his co-ords once he's inside. smile.gif (But there will still be blockages, even more so because they are all setpos-ed onto the same spot)

Gameer

Share this post


Link to post
Share on other sites

accck, okie i think i figured a fix to the blocking. i will have to put the guy that needs to go to the highest postion run in immediatley and then i will prolly just have a 5 sec. delay for each subsequent man entering the building.

Maybe this would be something for BIS to add in OFP2, the ability to place a man inside a building at one of its positions without using setpos or triggers.

Thanks again smile.gif

Share this post


Link to post
Share on other sites

Why don't you look for the coordinates by using a radio-call

trigger?

Place only your player and the radio-call trigger onto the map.

Trigger settings:

radio-alpha/repeatedly

onActivation: hint format ["%1",(getpos player)]

Now walk ingame to the locations you want to find the

coordinates about and hit your radio-call. wink.gif

~S~ CD

Share this post


Link to post
Share on other sites

I may be half asleep or something, but i think i remember reading something on this before.... I'll try searching myself, but i think in the editor if you zoom in directly over the building you can place a unit there and it gives you the option as to which room you want to put them in ...given each room is assigned a number...

I'll try looking to see....

Share this post


Link to post
Share on other sites

Bullz,

that works when you place the unit outside the building and then have him move to the position in the building by placing a waypoint over the building and then selecting the appropriate position. I am trying to have him start at the position and not move to it.

Thanks biggrin.gif

Share this post


Link to post
Share on other sites

Well if any one wanted i could send them a demo mission that shows how to make pepole start in specific points in a building just ask and i shall Email it to you

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  

×