Jump to content
saddle

Make type of 'Unit' friendly towards 'Faction'

Recommended Posts

Hello everyone,

 

and thank you for taking the time.

So in the title of this post is essentially to where I am getting at and what I am trying to figure out;

 

lets say I have two different mods that spawn different units, on the same faction side (west, east ect.)

but one mod's units attack the other mod's units, even if they are both on the same faction when spawned through eden editor, script or module.

It is like the individual mod is hostile to -all- including it's own faction side.

I have not managed to work out a code, or if there is already one out there, that for instance in mission scripting enforce a type of unit to be non-hostile towards it's own faction side, and at all times even when spawned in new units of the same type. I assume that code would need to be repeated or something for it to be permanent.

 

If anyone has any insight or would like to help it means a lot! 🙂

Share this post


Link to post
Share on other sites

Well a trick would be to dress the units as they are from the faction you want them to be although they will actually be from the other faction or group them after they are spawned to a guy from the other side so as to stop their hostility. There might be better ways though. Just a few thoughts  😎

 

Oh and this trick also which is based on the above: 

 

 

Share this post


Link to post
Share on other sites

How do I do it:

For example, I have a group of green FIAs, but I want them to be blue. I put any blue unit in Eden and attach the whole group of green ones to it. Then I delete the blue unit and the whole group of green ones remains blue.

This is the same as described by @JohnKalo above.

But if you have a problem within the groups of one side, then try the same thing, but with the unit of the group with which the hostile group begins to fight.

Share this post


Link to post
Share on other sites

Also try this command, I don't know, it might help:

EAST setFriend [EAST, 1];
WEST setFriend [WEST, 1];
RESISTANCE setFriend [RESISTANCE, 1];

 

Share this post


Link to post
Share on other sites

Excellent feedback I will try these! 🙂 Cheers

https://i.gyazo.com/90ba5fdfd80ada05b00d64c391d20645.png

One faction attacks another, even if they are on the same side.

I want them to be allies.

 

EDIT 1:
I am digging deeper into this, apparently it could be related to the rating of the units spawned by the mod?
That they are hostile to everyone because "their rating is -2000"

https://community.bistudio.com/wiki/ArmA:_Armed_Assault:_Rating_Values

Still doing some testing

 

EDIT2:
Trying to work out a script where I can set the rating of all (specific unit names) to a specific value of rating, and have that script on repeat.

In theory this should allow that, during a zeus session, any units that are continuesly spawned in those unit names, should all have that same rating right?

Edited by saddle

Share this post


Link to post
Share on other sites
50 minutes ago, Ibragim A said:

To customize the unit rating, try this.

 

That looks right!
This is for players though I think and not AI

 

not sure if I should use a trigger for this or a script 🙂

did not manage to figure anything out yet

Share this post


Link to post
Share on other sites
58 minutes ago, saddle said:

 

That looks right!
This is for players though I think and not AI

I think not. Try it like this:

{_х addRating 1000000} forEach allUnits;

In the script, in the trigger, whatever you want.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×