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

Optics - Don't modify camera for ThreeDen Editor #3041

Merged
merged 2 commits into from
Dec 17, 2015
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions addons/optics/XEH_postInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ if (!hasInterface) exitWith {};
GVAR(camera) = objNull;

0 = 0 spawn {
// Workarround for the ThreeDen Editor Camera
//ToDo: verify if command will exist in 1.56 release
if (((productVersion select 2) >= 155) && {is3DEN}) exitWith {
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe !isNil {is3DEN} instead? Just in case they don't finish the editor for 1.56.
Or: "n:is3den" in supportInfo "n:*"

ACE_LOGINFO("Eden detected: disabling Optics PIP Camera");
};

waituntil {!isNull ACE_player};
waituntil {sleep 1; {_x != GVAR(camera)} count allMissionObjects "camera" == 0 && {isNull curatorCamera}};

Expand Down