Home   Help Search Login Register  

Author Topic: stay standing!  (Read 1195 times)

0 Members and 1 Guest are viewing this topic.

Offline ONoSixIsDown

  • Members
  • *
stay standing!
« on: 29 Sep 2007, 00:41:48 »
is there an easy or effective way to ensure that a unit in a guard tower will remain standing and still actively engage enemies from the tower?  In one of the missions I'm working on, I have AI bots standing guard in tower which is great and all.  But as soon as they spot an enemy they drop prone with just there gun and legs "clipping" through the walls on the tower.  I've searched the forums on how to do this but never found what seemed like an effective means to do this...

any suggestions? I hate to think that people will be getting killed in my missions because of a AI bot "glitching" through a wall or something.
CRIMSON REIGN COMMING..... eventually :/

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: stay standing!
« Reply #1 on: 29 Sep 2007, 00:55:34 »
You might try the setUnitPos "UP" command, but it will not prevent them to try to advance and move and finally drop down from the the tower. You may also try to mix the setUnitPos with disableAI "MOVE" command.

Offline schuler

  • Contributing Member
  • **
Re: stay standing!
« Reply #2 on: 30 Sep 2007, 05:06:51 »
or try this setpos [(GetPos this select 0),(GetPos this select 1),5.1]; this setunitpos "UP"     the 5 is him in tower and a stop command could work to in w/p ,, it really " as ive found depends on the  island too!!!!!!!
Semper Fi

Offline clava

  • Members
  • *
Re: stay standing!
« Reply #3 on: 11 Dec 2007, 20:57:16 »
Use this setpos [(GetPos this select 0),(GetPos this select 1) + 5.1] to set the unit to the height that you like. Then use this SetUnitPos "up" to prevent him from proning, and though is rare that he might move, you can use this DisableAi "Target" (or "move"), so he will keep his position all the time.

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re: stay standing!
« Reply #4 on: 12 Dec 2007, 12:24:30 »
I suggest you just put him in the tower and then disable his AI Move capability:
http://www.ofpec.com/COMREF/index.php?action=list&game=All&letter=d#105
EG:
soldierOne disableAI "Move"

You can put him in the tower using buildingPos:
http://www.ofpec.com/COMREF/index.php?action=list&game=All&letter=b#34
EG:
unit setPos ((object 21222) buildingPos 1)