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....
BI Wiki - ArmA scripting commands
Hints: setPos, buildingPos, nearestObject_id
Some discussion about it at ofpec:
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.
Now excuse my noobness but I found this from the ofpec thread
and I don't know what to do with it.
where do I put it? In the mission file in My Documents?
Into the mission folder in your documents, yes.
Originally Posted by (Master gamawa @ April 08 2008,19:51)
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.
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 (nearestbuilding this buildingpos 25)
And works perfectly....
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't find your marker so it can't teleport you there.
Try execute my script: TakeBuilding.sqs
Originally Posted by (namreg @ April 08 2008,15:24)
(It spawn enemy into buildings).
Ι didn't use any setpos.
Originally Posted by (DaChevs @ April 18 2008,02:12)
I used the script I found in the link.
Should I use the command?
I DON'T GET IT!