Skip to content

Commit

Permalink
allow game logic for sectors creation
Browse files Browse the repository at this point in the history
  • Loading branch information
McDiod committed Jan 12, 2019
1 parent fafa253 commit b34ecb8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions functions/sectors/fn_createSector.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ if (!isServer) exitWith {};

params ["_logic",["_sectorName","UNKNOWN SECTOR"],["_pointsForCapture",1],["_pointsPerSecond",0],["_lockAfterCapture",false],["_captureSides",[WEST,EAST,INDEPENDENT]],["_owner",sideUnknown],["_notifyTakingControl",false],["_onSectorCaptured",{}],["_sectorData",""],["_captureMode",[0]]];

if !(_logic isKindOf "LocationArea_F") exitWith {ERROR_1("%1 is not an area logic.",_logic)};

if (!(_logic isKindOf "LocationArea_F") && {!(_logic isKindOf "Logic")}) exitWith {ERROR_1("%1 is not an area or game logic.",_logic)};

if (isNil "grad_sectors_sectorTriggers") then {grad_sectors_sectorTriggers = []};

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tvt-template",
"description": "Gruppe Adler TvT Template",
"version": "1.3.0",
"version": "1.3.1",
"contributors": [
{
"name": "McDiod"
Expand Down

0 comments on commit b34ecb8

Please sign in to comment.