OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: burning_gun 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
-
This seems a make-do answer.
Simply add a west unit as the leader ot the tanks squad, then put this in its innit:
this setpos [0,0,0]; this join grpnullShould work, and doesn't cause too many problems.
-
Thanks
It's giving this error message:
`this join grpnull |#|`: error join: type object, expected array
What I did wrong?
-
[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:
[unit1,unit2,unit3] join groupName;
-
My Bad :-[
Should work now. :good:
-
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?
-
I'm not sure if 'this' is case sensitive.
You could put
[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.
-
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?
-
Could be a problem with whether the units know about each other and such.
Either way, I don't know. Sry :dunno:
-
Thanks anyway
it seems that the unit don't know who shot it..
-
Consider looking at this, if that is the case:
Knowsabout command (http://www.ofpec.com/COMREF/index.php?action=list&game=All&letter=k#176)
-
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.
-
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:
-
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.