Skip to content

Commit

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

params [["_logic",objNull],["_sectorName","UNKNOWN SECTOR"],["_owner",sideUnknown],["_id",-1],["_notifyTakingControl",true],["_captureTime",480]];

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)};
[_logic,_sectorName,0,0,false,[WEST,EAST,INDEPENDENT],_owner,_notifyTakingControl,FUNC(onSectorCaptured),_id,[1,_captureTime]] call EFUNC(sectors,createSector);

if (isNil QGVAR(sectorTriggers)) then {GVAR(sectorTriggers) = []};
Expand Down

0 comments on commit fafa253

Please sign in to comment.