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

Thread: Move unit into house position instantly

  1. #1
    Hello,

    There's a Bar at the entrance of the town of Carmen, when you create an unit and add a waypoint over this building, it says that there are 38 positions where he can go to.

    I created 37 enemy soldiers to go into this house and guard every window but they don't enter, they get stucked in the front door moving around rotating over themselves.

    So I wonder if there's a command such as the moveincargo or moveindriver to move them instantly to those positions....

    THX




  2. #2
    Master Gunnery Sergeant
    Join Date
    Dec 18 2005
    Location
    Adelaide, Australia
    Posts
    1,306
    BI Wiki - ArmA scripting commands

    Hints: setPos, buildingPos, nearestObject_id
    [self-promotion]
    OFP:R Island : Rezina
    [/self-promotion]

  3. #3
    Master Gunnery Sergeant
    Join Date
    Sep 10 2004
    Location
    Finland
    Posts
    1,287
    Some discussion about it at ofpec:

    http://www.ofpec.com/forum/index.php?topic=31236.0

    includes a working example function in my post. I use it to create units into guard towers.

    Copy and modify as you wish if you like to use that.

    Other examples can be found with a little bit of looking around.

  4. #4
    Nice!

    Now excuse my noobness but I found this from the ofpec thread

    http://www.armaholic.com/page.php?id=879

    and I don't know what to do with it.
    where do I put it? In the mission file in My Documents?

  5. #5
    Quote Originally Posted by (Master gamawa @ April 08 2008,19:51)
    where do I put it? In the mission file in My Documents?
    Into the mission folder in your documents, yes.
    #include "signatur.h"
    "I'm not slacking of. My addon is 'pboing'!"

    Blog about the RTE | Pastebin with SQF support

  6. #6
    Well it doesn't work.
    The file is in my mission folder (together with the respawn ext) and I copied the right command in the init field.

    As soon as I preview the mission all units appear in the middle of the ocean.

    In the beggining I thought they disappeared but I used the command on me and ended up with the other poor bastards in the water.

    What?

  7. #7
    Sergeant
    Join Date
    Mar 14 2007
    Location
    Barcelona
    Posts
    109
    Author of the Thread
    Ok, I did it, THX all guys, specially fasad....

    I used this command:

    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
    this setpos &#40;nearestbuilding this buildingpos 25&#41;
    [/QUOTE]

    And works perfectly....

    Thanks guys

  8. #8
    when they appear in the ocean that means you have the setPos to low or if it is a GetMarkerPos and SetPos that means the marker is named wrong in your script and it simply can&#39;t find your marker so it can&#39;t teleport you there.

  9. #9
    Quote Originally Posted by (namreg @ April 08 2008,15:24)
    ..."I created 37 enemy soldiers to go into this house and guard every window but they don&#39;t enter"....
    Try execute my script: TakeBuilding.sqs
    (It spawn enemy into buildings).




  10. #10
    Quote Originally Posted by (DaChevs @ April 18 2008,02:12)
    when they appear in the ocean that means you have the setPos to low or if it is a GetMarkerPos and SetPos that means the marker is named wrong in your script and it simply can&#39;t find your marker so it can&#39;t teleport you there.
    Ι didn&#39;t use any setpos.
    I used the script I found in the link.

    Should I use the command?

    I DON&#39;T GET IT&#33;

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
  •