Home   Help Search Login Register  

Author Topic: get out you ninnyhammers!  (Read 1255 times)

0 Members and 1 Guest are viewing this topic.

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
get out you ninnyhammers!
« on: 30 Oct 2005, 15:22:13 »
m'kay, i have (with a script) sent various loons into buildings and set them up at windows to fire through. fine. when the battle is over, however, and i want them to follow their commander to the evac point, they won't budge.

the script is called using [unit, building, buildingpos] exec "into_building.sqs", which looks like this -

Code: [Select]
;get units into buildings and have them stay there

_who = _this select 0
_building = _this select 1
_where = _this select 2

_who domove (_building buildingpos _where)

@(unitready _who)

dostop _who
_who setunitpos "up"

exit

as you can see there's a dostop command in there. which i always thought was over-ridden by the dofollow command, but not so it seems...

i tried issuing them with a direct domove command, but still nothing.

if i am the commander, though, and tell them to 'return to formation' out they come...

is dofollow not the equivalent of 'return to formation'?

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:get out you ninnyhammers!
« Reply #1 on: 30 Oct 2005, 15:31:33 »
Quote
is dofollow not the equivalent of 'return to formation'?
Until now I had always thought it was.  Bye the way when you tell them to go to a specific buildingPos in this way will they climb stairs and ladders to get there - or are you only using ground floor locations?  

The only things I can think of suggesting is perhaps to get them to join grpNull and then re-join their leader ::).  Or setPos them out of the building out of sight of the player.
« Last Edit: 30 Oct 2005, 16:17:13 by THobson »

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re:get out you ninnyhammers!
« Reply #2 on: 30 Oct 2005, 15:45:15 »
hmmm. not optimal.

yes indeed, they go upstairs and everything, although contain any excitement - i'm using the flats in petrovice, and only the medium-sized flats work. they have 13 building positions but only about 7 of them 'work', i.e. you tell a loon to go to position 4, he does. you tell him to go to position 5, he tells you he's already there...

and the larger flats don't work at all. they supposedly have 8 positions, and loons will walk through the walls to get to anything over position 2. ladders are out of bounds too it seems.

hmmm. i think a workaround is in order here...  :-\
« Last Edit: 30 Oct 2005, 15:45:51 by bedges »

Offline Baddo

  • Former Staff
  • ****
  • Reservist Jaeger
Re:get out you ninnyhammers!
« Reply #3 on: 30 Oct 2005, 16:39:33 »
Getting AI soldiers go into buildings properly is really difficult to my experiences. For example, if an AI soldier is too close to the front door of the building, he might not move at all when he's issued a 'move to buildingpos' command, and doesn't even say anything... but when you move him a little bit away from the door, then he goes into the building. The AI soldier can also be near the buildings wall on the side where the door is, but not close to the door itself and behave the same. This problem could be solved by giving a waypoint something like 50 meters away from the building first and then ordering the unit to the building.

 ::)

This particular problem has something to do with the AI paths that are defined in the building models. AI's don't know how to get to the point where the building's walkable path starts if he's "wrongly" positioned.

Nothing to do with your problem though but I thought it's good to know this too.

And yeah, they go through the walls as a rule. I guess that just has to be accepted by us because I can't really see anything we could do to make it any better. Probably the "go-through-walls" problem could be reduced by changing all buildings to specially edited ones which have lots of room for the AI's to blunder around and finely tuned AI paths to keep them away from the walls. With standard stuff there's not much we can do for this.

I really, really hope that in Armed Assault this has been considerably improved.

Offline ACF

  • Members
  • *
  • Llama?? Ain't that French for tanks?
Re:get out you ninnyhammers!
« Reply #4 on: 30 Oct 2005, 21:11:05 »
if i am the commander, though, and tell them to 'return to formation' out they come...
How about:

Code: [Select]
_who CommandFollow (Leader _who)?

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re:get out you ninnyhammers!
« Reply #5 on: 30 Oct 2005, 21:40:47 »
i shall give that a go. i had considered the command-commands, but didn't get around to trying them.

cheers meantime.  8)