Home   Help Search Login Register  

Author Topic: how to make a unit use...  (Read 474 times)

0 Members and 1 Guest are viewing this topic.

Ronf

  • Guest
how to make a unit use...
« on: 04 Jun 2003, 16:52:13 »
its rgplauncher/lawlauncher against an object? in my case i want to have that guy go to a training camp, take an rpg/law and shoot an armored target (the one from the objectlist).

i tried several action and dotarget commands but the guy just walks to the wp and then does nothing :-( he just fires when its an enemy vehicle, and i dont want enemy vehicles in trainingcamps...

any solutions?

thanx ronf

SimonRussi

  • Guest
Re:how to make a unit use...
« Reply #1 on: 04 Jun 2003, 17:54:57 »
have you tried doFire?

*edit
I had the same problem with the normal targets and rifles, and had to download an addon called TargetE. I think you need something like that
« Last Edit: 04 Jun 2003, 17:56:37 by SimonRussi »

Komuna

  • Guest
Re:how to make a unit use...
« Reply #2 on: 04 Jun 2003, 17:56:00 »
? Strange... I thought that if you combine dotarget with dofire it would work... Anyway, have you tried to combine _unit DoTarget _target with _unit Fire ["RpgLauncher","RpgLauncher"]... I can't promisse you anything, I couldn't make it work either... ??? :-\

But is it for a cutscene? If so, why don't you CamCreate the rocket at the soldier's position, towards the target...? It would require a litle of trignometry, but it would work.

And... what if you set your target to enemy (at mission.sqm), set it captive (init: this setcaptive true) and set it enemy again (this setcaptive false) when you want your soldier to destroy it...? Once again, I can't promisse you anything.

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:how to make a unit use...
« Reply #3 on: 04 Jun 2003, 18:24:07 »
unitname selectweapon (secondaryWeapon unitname)

unitname dofire object

shud b workin ;)

weaponname

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:how to make a unit use...
« Reply #4 on: 04 Jun 2003, 19:13:44 »

...I want (a guy to) go to a training camp, take an rpg/law and shoot an armored target.

...any solutions?




 :) check THIS out, m8, if anything else fail.