-
Notifications
You must be signed in to change notification settings - Fork 740
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make setHidden use forgetTarget #5987
Conversation
What is locality on forgetTarget?
in case the command is global and causes network traffic? |
I just assumed it's AG EL, since it's the anti- |
I have a feeling it may be global since it was added in A3. I wish we had a quick way to check without relying on biki or booting up two instances of arma 😛 |
Should we |
They'd be revealed over time. I think it's better not to. |
addons/common/XEH_postInit.sqf
Outdated
@@ -54,7 +54,9 @@ | |||
_object setVariable [QGVAR(oldVisibility), _vis]; | |||
_object setUnitTrait ["camouflageCoef", 0]; | |||
{ | |||
_x forgetTarget _object; | |||
if (side _x != side group _object) then { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will not work if side _object == ENEMY
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We actually just discussed this internally, it's quite edge case. One fix would just be to do:
if (side _x != side _object)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The other would be to just have all groups except their own forget them (for healing).
make setHidden use forgetTarget
When merged this pull request will:
Question is if this breaks anything else? Maybe just apply it to enemy groups?