Home   Help Search Login Register  

Author Topic: Making a unit shoot  (Read 870 times)

0 Members and 1 Guest are viewing this topic.

Putin

  • Guest
Making a unit shoot
« on: 23 Oct 2002, 14:54:09 »
I want a unit to shoot. I do this through the command:
unit fire "weapon","ammo","type". This I put in a script and make him shoot the whole time through a loop.
But the unit looks up into the air and then shoots. How can I make him shoot straight?
Thanks

david-p

  • Guest
Re:Making a unit shoot
« Reply #1 on: 23 Oct 2002, 14:57:41 »
the unit needs to know what to shoot at.
unit dotarget unit2
the only consideration is that the units only force fire against other units or vehicles.

Putin

  • Guest
Re:Making a unit shoot
« Reply #2 on: 23 Oct 2002, 15:05:43 »
Thanks but I tried that already. I have read something like this:
unit setdir angle

and if I change angle to 180 the unit turns around and then shoots up.But if I just write 45  or anything else it just keeps looking up and shoot