Home   Help Search Login Register  

Author Topic: dofire???  (Read 1305 times)

0 Members and 1 Guest are viewing this topic.

Skanderborgvej

  • Guest
dofire???
« on: 07 Jul 2003, 14:06:17 »
Can an AI tank fire at a house (or any other static object)?
I've tried this:  tank dofire (object ****)
But it don't start firing, it just stand still.... and do NOTHING?!

Maybe it's easy to slove but I don't get it.
(and can an AI fire a destroyed vehicle?)

Grtz Vlaamse Leeuw  ;)


gadolinite

  • Guest
Re:dofire???
« Reply #1 on: 07 Jul 2003, 18:47:18 »
 :'(unfortionately tanks do not fire on anything tha tis not an enemy unless it is an accedent, even with the dofire command.  

I have had the same experiance with an invisible Hpad, trying to simulate an airstrike on open ground where enemies are reported to be present, kind of like vietnam.  

What I did here was I had a flying UAZ with a loop setpos, and when the chopper ran out of rockets, the UAZ deleted itself.  The chopper never hit the UAZ because it was setting its pos faster than the rockets could fly, so therefore the rockets hit the ground.  With playing and experimentation, I got it right.  

I suggest for the house, you have an invisible marker, and unitcreate an enemy soldier at this marker which corresponds to a position inside the house, this will take experimentation to get right.  Reveal this unit to the AI tankers.  He will fire on this unit and should destroy the house along with the soldier inside.  Delete the dead soldier after the house is destroyed.  What were doing here is making an accedent that simulates an on purpose.  

If it is a house you can't go inside, maybe you could try something similar to what I did.  If the UAZ, or whatever will look bad, then make a cutscene out of it, and point the camera away from the UAZ, or whatever.  

Destruction of towns and houses seems like a good movie thing.  

Skanderborgvej

  • Guest
Re:dofire???
« Reply #2 on: 08 Jul 2003, 12:35:36 »
Key, then I'll try it with a cutscene. thx

But if you ever find a solution =>>> let me now  ;)

Grtz Vlaamse Leeuw

_hammy_

  • Guest
Re:dofire???
« Reply #3 on: 08 Jul 2003, 16:55:46 »
just put a gamelogic inside a house then have the tank shoot at the gamelogic
« Last Edit: 08 Jul 2003, 16:56:56 by HAMMY »

Skanderborgvej

  • Guest
Re:dofire???
« Reply #4 on: 08 Jul 2003, 21:30:49 »
Nope I already tried it with a gamelogic, marker, object,... (you get it).
It just won't work  ???
But is it possible to let a tank fire at nothing, just fire a shell forward, with no target?



Grtz Vlaamse Leeuw

Kaliyuga

  • Guest
Re:dofire???
« Reply #5 on: 08 Jul 2003, 21:48:51 »
nope... gotta have a target for the AI to fire...

you can try what  gadolinite said....    you can also take an object like an M2 MG name it something .... and then put this in it's init field:


this setpos [getpos this select 0, getpos this select 1,-3]

that would sink it three meters underground.. but you can still have the tank fire on that object with the dofire command ;)

you can also setpos something hi in the sky... or behind some trees.. or off camera....

:cheers:

Skanderborgvej

  • Guest
Re:dofire???
« Reply #6 on: 08 Jul 2003, 22:01:32 »
Well I also thought it would be a good idea to lower a target below the ground, so it's not visible or the camera and then let a tank fire it but...
Nope, the tank was just watching the wind blowing :-\
I also tried to put an enemy tank behind a house, but tanks do need a clear target I think.
(I'll have to put an enemy object in the bushes then I think, but I'm hoping someone could find a way to do it...)
Thx anyway  ;)

Grtz Vlaamse Leeuw
« Last Edit: 08 Jul 2003, 22:03:02 by Vlaamse Leeuw »

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:dofire???
« Reply #7 on: 08 Jul 2003, 22:39:43 »

 :) Nothing is impossible, my man!  :-* 8)

 :D Just be stubborn about it - thats how I got my gorgeous ol' lady!!!!  8) ;D


use a direction:

TankName setdir 230; TankName fire ["GUN120", "shell120", "Shell120"]


(this is for the M1Abrams - check the ammoLists, matey!)
Ya just need to find the proper direction... and off it goes, the shell :thumbsup:


P.S.

Ya might wanna use "DoWatch" instead of "SetDir..." if so, try this:

TankNameC Dowatch object 23305; TankName fire ["blah..."]

see, I told the commander ( tankNameC ) to watch, and then the firing...  ;)



« Last Edit: 08 Jul 2003, 22:47:14 by Tomb »

MPKING

  • Guest
Re:dofire???
« Reply #8 on: 09 Jul 2003, 10:17:26 »
And if that doesn't work you could try with the invisible target addon although i can't remember where i found it, anyone?

Skanderborgvej

  • Guest
Re:dofire???
« Reply #9 on: 09 Jul 2003, 11:36:07 »
YES! YES! YES!
Tomb you're the MAN!  Thx a lot, now I can let that stupido tank fire  :-* ;).

Also many thanks to all who tried to help me :-* ;D.

Lucky GRTZ  Vlaamse Leeuw

P.S.  Thx again  ;D ;D ;D