Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Placing units in buildings

  1. #1
    I was wondering how to place units inside the buildings at the various positions. Whenever I place them on the buildings in the map, they just stand on the roof. Is there a script or something, that'll start them off at the specific positions?

  2. #2

  3. #3
    Yeah, I did search, and I found nothing. I searched "placing units in building" and got nothing. I searched "unit building" and got nothing. Care to tell me what I should actually be searching for?

  4. #4
    init="this setpos [(getpos this select 0), (getpos this select 1), 0]";

    init="this setpos [(getpos this select 0), (getpos this select 1), 8]";

    init="this setpos [(getpos this select 0), (getpos this select 1), 4]";

    ...

  5. #5
    Make sure you tick the box "and older" on the bottom of the search site next time...
    unit´s in buildings

  6. #6
    Cool, Cheers guys. I'm doing it with the lines satexas69 posted. I can't get it to work properly with the building positions, so I'm just using trial and error for each person.

  7. #7
    Yip, also does not work for me. Lets say I want to put a harrier in a hanger on the airfield in the north. What is the init string for that?

  8. #8
    You can download two scripts I made for this, at Armaholic.

    Random Building Position Script:
    http://www.armaholic.com/page.php?id=879

    and

    Random House Patrol Script:
    http://www.armaholic.com/page.php?id=936

    These will allow you to place units randomly in buildings, and
    if you want to they'll patrol the area.

  9. #9
    Quote Originally Posted by [b
    Quote[/b] ] Lets say I want to put a harrier in a hanger on the airfield in the north. What is the init string for that?
    Put the jet right above the hangar and use this in init line:

    this setpos [(getpos this select 0), (getpos this select 1), 0.2]

    Quote Originally Posted by [b
    Quote[/b] ]I can't get it to work properly with the building positions
    No surprise as it doesn´t have anything to do with building positions but only defines the height of a unit exactly where you placed it.




  10. #10
    Cool bananas, will give a wirl, thanx!

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •