Skip to content

Commit

Permalink
Docs - Fix intercom example code
Browse files Browse the repository at this point in the history
  • Loading branch information
PabstMirror committed Aug 7, 2023
1 parent c6e34c7 commit a531828
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ hemtt.exe
symbols/*
keys/*
.hemtt/local
hemtt.toml
idi/*
a3/*
*.cache
Expand Down
4 changes: 2 additions & 2 deletions docs/wiki/frameworks/vehicle-intercom.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class CfgVehicles {
displayName = "Passenger intercom";
shortName = "Pax";
// Units in crew and in cargo positions have access to the passenger intercom
allowedPositions[] = {"crew", {"cargo", all}};
allowedPositions[] = {"crew", {"cargo", "all"}};
// Excludes units from accessing the passenger intercom. In this example, gunner, cargo index 1 and all FFV turrets do not have access to passenger intercom
disabledPositions[] = {"gunner", {"cargo", 1}, {"ffv", "all"}};
connectedByDefault = 0;
Expand All @@ -99,7 +99,7 @@ class CfgVehicles {
allowedPositions[] = {{"cargo", 1, 2}, {"ffv", "all"}};
// Excludes unit in FFV turret [4] to access from accessing passenger intercom, as well as cargo index 1 and turret [1]
// when they are turned out
disabledPositions[] = {{"ffv", [4]}, {"turnedOut", 1, [1]}};
disabledPositions[] = {{"ffv", [4]}, {"turnedOut", 1, {1}}};
}
};
};
Expand Down

0 comments on commit a531828

Please sign in to comment.