Skip to content
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

Fix Zeus teleport players module #5175

Merged
merged 4 commits into from
May 26, 2017
Merged

Fix Zeus teleport players module #5175

merged 4 commits into from
May 26, 2017

Conversation

kymckay
Copy link
Member

@kymckay kymckay commented May 18, 2017

When merged this pull request will:

  • Fix zeus teleport module on non-local units (i.e all other players)
  • Remove BI error message when using zeus UI modules that have no function

kymckay added 2 commits May 18, 2017 20:19
This removes the message about the module having no function when in SP.
BI made a change to the function this module was using. So now it has to
be ran local to the player in question.
@kymckay kymckay added exp/beginner kind/bug-fix Release Notes: **FIXED:** labels May 18, 2017
@kymckay kymckay added this to the 3.10.0 milestone May 18, 2017
private _attached = attachedTo _logic;
if (isNull _attached) then {
[QGVAR(moveToRespawnPosition), [_x, getPos _logic], _x] call CBA_fnc_targetEvent;
// Function takes position AGL and must be ran where local
[QGVAR(moveToRespawnPosition), [_x, _logic modelToWorld [0,0,0]], _x] call CBA_fnc_targetEvent;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spaces after , in modelToWorld? [0,0,0] -> [0, 0, 0].

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if we have a set standard for that, but personally I only use spaces where it helps with readability. In this case I'd argue that adding spaces actually has the opposite effect.

@kymckay kymckay merged commit 2ca3716 into master May 26, 2017
@kymckay kymckay deleted the zeusTeleport branch May 26, 2017 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug-fix Release Notes: **FIXED:**
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants