Home   Help Search Login Register  

Author Topic: Keep Ai from falling out of tower or building?  (Read 696 times)

0 Members and 5 Guests are viewing this topic.

Rysumm

  • Guest
Keep Ai from falling out of tower or building?
« on: 12 Jun 2004, 05:07:11 »
Ok, how do you keep AI guys from getting on their bellys and falling out of towers and buildings when shot at. I just want them to stand still but look ready to fire,  

Homefry31464

  • Guest
Re:Keep Ai from falling out of tower or building?
« Reply #1 on: 12 Jun 2004, 05:11:52 »
unitname setunitpos "up"

-Homefry

cameronmc

  • Guest
Re:Keep Ai from falling out of tower or building?
« Reply #2 on: 12 Jun 2004, 10:15:44 »
Additionally, use Homefry's suggestion and

nameofunit disableai move

that'll stop 'em moving at all.

Rysumm

  • Guest
Re:Keep Ai from falling out of tower or building?
« Reply #3 on: 12 Jun 2004, 19:27:25 »
Sounds good. I'll give it a try.  

Rysumm

  • Guest
Re:Keep Ai from falling out of tower or building?
« Reply #4 on: 24 Jun 2004, 02:34:46 »
Ok, guys any idea where i enter in setunitpos up or disableai move? I just got back in town so this is the first chance I have had to try this.

Rysumm

  • Guest
Re:Keep Ai from falling out of tower or building?
« Reply #5 on: 24 Jun 2004, 02:48:22 »
Well, I tried putting the "setunitpos up" in the intialization feild of the guy, but he still falls out of the tower when I shoot at him.  

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Keep Ai from falling out of tower or building?
« Reply #6 on: 24 Jun 2004, 11:59:02 »
You do indeed write the code in the init field of the unit.

this setunitpos "up"; this disableai move
 
(Order might be important.   Syntax not guaranteed - look it up in the command reference.) He will fall out of the tower when dead whatever you do.   You could use some fancy scripting to make the body stay up there, but it would look like it was supended in mid air and in any case I doubt its worth the trouble.
« Last Edit: 24 Jun 2004, 12:03:35 by macguba »
Plenty of reviewed ArmA missions for you to play

Rysumm

  • Guest
Re:Keep Ai from falling out of tower or building?
« Reply #7 on: 25 Jun 2004, 03:55:55 »
Thanks for the additional info it worked like a charm.