Home   Help Search Login Register  

Author Topic: problems with resistance unit  (Read 3477 times)

0 Members and 1 Guest are viewing this topic.

Offline burning_gun

  • Members
  • *
problems with resistance unit
« on: 16 May 2008, 15:58:54 »
Hi

I hope I'm posting at the right place.

I'm having problems with a certain add-on.
It's a merkava tank ( don't remember right now from where the add-on is).
The problem is that this unit is ignoring enemy units, when the ai control it alone.
It's a resistance unit, but I don't think that it's the problem since other resistance units are working.

Is there a way to force a unit to attack the enemy?
The tank just gets hit by rockets but don't shoot back.

If the unit is part of a squad with west units, then it's working.

I appreciate any help

Offline Gcfungus

  • Members
  • *
Re: problems with resistance unit
« Reply #1 on: 16 May 2008, 17:23:44 »
This seems a make-do answer.
Simply add a west unit as the leader ot the tanks squad, then put this in its innit:
Code: [Select]
this setpos [0,0,0]; this join grpnullShould work, and doesn't cause too many problems.
The object of war is not to die for your country, but to make the other bastard die for his.
~George Patton

Offline burning_gun

  • Members
  • *
Re: problems with resistance unit
« Reply #2 on: 16 May 2008, 18:07:57 »
Thanks

It's giving this error message:

`this join grpnull |#|`: error join: type object, expected array

What I did wrong?

Offline Cheetah

  • Former Staff
  • ****
Re: problems with resistance unit
« Reply #3 on: 16 May 2008, 19:48:50 »
Quote
[this] join GrpNull;

First part should be an array, like [this] in the example. Note that you can add more units to join the particular group:

Code: [Select]
[unit1,unit2,unit3] join groupName;
Like missions? Help with Beta Testing! or take a look at the OFPEC Missions Depot for reviewed missions!

Offline Gcfungus

  • Members
  • *
Re: problems with resistance unit
« Reply #4 on: 16 May 2008, 21:56:48 »
My Bad  :-[
Should work now.  :good:
The object of war is not to die for your country, but to make the other bastard die for his.
~George Patton

Offline burning_gun

  • Members
  • *
Re: problems with resistance unit
« Reply #5 on: 16 May 2008, 22:29:55 »
Let me see if I understand correctly

I'll take the unit (not empty) and name it for example "unit1".
Then I'll group it with a west leader and in his int field I'll put this line :
This setpos [0,0,0]; [unit1] join grpnull

Right?


Offline Gcfungus

  • Members
  • *
Re: problems with resistance unit
« Reply #6 on: 16 May 2008, 23:09:17 »
I'm not sure if 'this' is case sensitive.
You could put
Quote
[unit1] join grpnull
but that would seperate the unit. The better idea would be to swap unit1 to this. Therefore, the west unit joins the nullgroup, not the unit1.
Also, make sure the west unit is of a higher rank, therefore the whole group is west.
The object of war is not to die for your country, but to make the other bastard die for his.
~George Patton

Offline burning_gun

  • Members
  • *
Re: problems with resistance unit
« Reply #7 on: 17 May 2008, 17:50:35 »
Not working

The tank gets hit, turn around 360 degrees, and do nothing

Maybe the add-on was not built right?

Can I change the add-on to be west?

Offline Gcfungus

  • Members
  • *
Re: problems with resistance unit
« Reply #8 on: 17 May 2008, 18:03:53 »
Could be a problem with whether the units know about each other and such.
Either way, I don't know. Sry  :dunno:
The object of war is not to die for your country, but to make the other bastard die for his.
~George Patton

Offline burning_gun

  • Members
  • *
Re: problems with resistance unit
« Reply #9 on: 17 May 2008, 20:46:26 »
Thanks anyway

it seems that the unit don't know who shot  it..

Offline Gcfungus

  • Members
  • *
Re: problems with resistance unit
« Reply #10 on: 17 May 2008, 20:58:28 »
Consider looking at this, if that is the case:
Knowsabout command
The object of war is not to die for your country, but to make the other bastard die for his.
~George Patton

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re: problems with resistance unit
« Reply #11 on: 22 May 2008, 17:51:20 »
A quick hack:
Open the mission.sqm in text editor like notepad and find the unit in question. Where it says side change it from guer to west, and save. Now try mission again. Please note that each time you save the mission in the mission editor you will have to repeat this step.
urp!

Offline burning_gun

  • Members
  • *
Re: problems with resistance unit
« Reply #12 on: 05 Jun 2008, 21:25:49 »
Tried that, didn't work  :(

I also tried the "do fire" command , and it won't fire.
If the tank is part of a squad, other members of the squad tell it about the target.

I also tried something else, this tank can carry other soldiers.

I've placed an enemy bmp on the map, and the tank finally reacts!
But, when it wants to fire, all the "passangers" ejects from the tank, and then it fires?!?!

I appreciate any help :dunno:



Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re: problems with resistance unit
« Reply #13 on: 22 Jun 2008, 17:59:07 »
Sounds like the Addon is bugged. I would try posting a question in the Addons section of the forums, posting a link to the addon download. Ask if the config.cpp is bugged. If it is bugged, someone there should be able to help you fix it and repack the addon.
urp!