Home   Help Search Login Register  

Author Topic: Keep unit standing even under fire  (Read 1197 times)

0 Members and 1 Guest are viewing this topic.

Offline DjTano

  • Members
  • *
Keep unit standing even under fire
« on: 27 Jun 2009, 00:55:33 »
Hey guise,

i am trying to place enemy soldiers who will not change stance even if shot at, specifically, i want them to keep standing

i have tried putting - this unitsetpos "up"; - but they will still lay down if shot at, what can i do?

Offline firegraphite

  • Members
  • *
Re: Keep unit standing even under fire
« Reply #1 on: 27 Jun 2009, 04:49:04 »
try to put this line in the unit's init field:
this setBehaviour "careless"

Offline DjTano

  • Members
  • *
Re: Keep unit standing even under fire
« Reply #2 on: 27 Jun 2009, 13:09:47 »
but will they not simply stop shootong back if set on careless?

*edit*

tried putting them on careless, worked perfectly, thanks a lot! :D
« Last Edit: 27 Jun 2009, 16:44:07 by DjTano »

Offline Gruntage

  • Missions Depot
  • Administrator
  • *****
  • How do I get outta this chickensh*t outfit?
Re: Keep unit standing even under fire
« Reply #3 on: 11 Jul 2009, 21:55:08 »
If you still want them in the combat stance just put this in the unit's init field:

this setunitpos "UP"

if you want them to stay down use:

this setunitpos "DOWN"
"But one thing I can tell you from not just OFP but life in general:  criticism is directly proportional to quality. The more criticism a mission receives, the better the outcome" - macguba

Offline Marto

  • Members
  • *
Re: Keep unit standing even under fire
« Reply #4 on: 12 Jul 2009, 09:45:32 »
in leader init put this:

Code: [Select]
"_x disableAI {TARGET}" foreach units group this; this setunitpos "up"
For other members of his group put this:

Code: [Select]
dostop this; this setunitpos "up"
To put them in rooms in a building etc also add this in their inits obviously changing the object number to the building you want them in and the buildingpos number to the room you want them in:

Code: [Select]
this setPos ((object 17100) buildingPos 1);


The above will keep them standing and firing back as normal - it stops them running off or lying down.