Home   Help Search Login Register  

Author Topic: forcing a unit to lie down and stay down  (Read 2661 times)

0 Members and 1 Guest are viewing this topic.

LimeCordial

  • Guest
forcing a unit to lie down and stay down
« on: 23 Aug 2002, 18:25:56 »
i want to have 2 snipers who are a group of their own, overlooking the airport on nogova. they are in the right place and everything, but i want them to start lying down and stay down throughout the mission. also, i only want them to start shooting when i give them a radio command to do so. the group is called 'snipe'.

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
Re:forcing a unit to lie down and stay down
« Reply #1 on: 23 Aug 2002, 18:30:44 »
unitname setunitpos "down"

that will keep em prone

unitname setcombatmode "red"

start them on 'never fire' and then use that (i think red lets the fire and engage at will)

:thumbsup:
Proud Member of the Volunteer Commando Battalion

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:forcing a unit to lie down and stay down
« Reply #2 on: 23 Aug 2002, 18:32:28 »
Hi Lime!

Try putting this in the snipers init field:

this setunitpos "down"
Not all is lost.

LimeCordial

  • Guest
Re:forcing a unit to lie down and stay down
« Reply #3 on: 23 Aug 2002, 18:34:28 »
can i put the groupname there or will it only work with units? because if i put the name of the commander, will the other sniper actually get down as well..?

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
Re:forcing a unit to lie down and stay down
« Reply #4 on: 23 Aug 2002, 18:38:41 »
i reckon they should - since if u are prone when u are commander all yor men go prone

try it and see :thumbsup:
Proud Member of the Volunteer Commando Battalion

LimeCordial

  • Guest
Re:forcing a unit to lie down and stay down
« Reply #5 on: 23 Aug 2002, 19:08:12 »
ok, that seems to have worked...... but now i have a problem. there are enemy infantry at the base, within the sniper's LOS. but when i give them the signal they dont shoot at them. why??  ???

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:forcing a unit to lie down and stay down
« Reply #6 on: 23 Aug 2002, 19:13:59 »
they're too far away?

try with the dotarget or dofire command. If the snipers still won't fire then they should move closer.

that'll be: unit1 dofire unit2

the setcombatmode "red" is right, I double checked it  :)
Not all is lost.

LimeCordial

  • Guest
Re:forcing a unit to lie down and stay down
« Reply #7 on: 23 Aug 2002, 19:17:52 »
they shouldnt be too far away, i gave myself a rifle and looked at the enemies, and i could see them clearly. ill try the dofire.

hmmmmmmmmm, that dont work so maybe they are too far away..........i wanted them on this hill beacuase it overlooked the airport and there is just barren land in between.

i spose ill have to look for a diffrent spot. >:( :-\
« Last Edit: 23 Aug 2002, 19:22:07 by LimeCordial »

Bremmer

  • Guest
Re:forcing a unit to lie down and stay down
« Reply #8 on: 23 Aug 2002, 19:24:05 »
Getting AI snipers to engage from distance can be a real pain. This might help ->

Put a trigger over all the units you want the sniper to shoot at. Make it east/west present (whichever type the units are). Leave the condition as this, and make On Activation snipertargets = thislist.

Now when you want the sniper to open fire use "sniper1 reveal _x" foreach snipertargets. This lets the sniper know about all the units in the trigger, and he should now engage them.

Cheers
« Last Edit: 23 Aug 2002, 19:24:32 by Bremmer »

LimeCordial

  • Guest
Re:forcing a unit to lie down and stay down
« Reply #9 on: 23 Aug 2002, 19:28:16 »
ok i moved them and it works..........but how do i make them stay where they are?? they crawl around.........i dont want them to. :-\

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:forcing a unit to lie down and stay down
« Reply #10 on: 23 Aug 2002, 19:38:27 »
to the init fields of the snipers:

this disableai "move"

guaranteed satisfaction with this command  ;)
Not all is lost.

whiplash2000a

  • Guest
Re:forcing a unit to lie down and stay down
« Reply #11 on: 23 Aug 2002, 19:50:08 »
That's one of the most helpful threads I've ever seen.

Could someone make a quick desert island mission for me with the same information from this thread. I'd like to see it work like this:

1. Player is commander.
2. The commander has two snipers under his control.
3. The snipers are set up on the ground in the prone position.
4. There is a group of unarmed east soldiers that are reasonably far away.
5. The commander gives the radio order for the snipers to fire.
6. They do.

I'm sure others could use this sample mission as well.
« Last Edit: 23 Aug 2002, 19:50:48 by whiplash2000a »

LimeCordial

  • Guest
Re:forcing a unit to lie down and stay down
« Reply #12 on: 23 Aug 2002, 19:51:52 »
YAY!  :D

it works, cheers for the help!  :)

*whispers* now, does anyone know where i can contact capt. moore?