Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _camp = _this Select 0;
- _town = _this Select 1;
- Call Compile Format["if (IsNil ""%1Camps"") then {%1Camps = []};",Str _town];
- Call Compile Format["%1Camps = %1Camps + [_camp]",Str _town];
- _index = Call Compile Format["%1Camps Find _camp",Str _town];
- _marker = Format["%1Camp%2",Str _town,_index];
- CreateMarkerLocal [_marker,GetPos _camp];
- _marker SetMarkerTypeLocal "Strongpoint";
- _marker SetMarkerColorLocal "ColorBlue";
- _marker SetMarkerSizeLocal [0.5,0.5];
- waitUntil {commonInitComplete};
- Sleep 10;
- _town_side = _town getVariable Format["%1SideID", Str _town];
- diag_log format["[TeTeT] LOG: SideID of town %1: %2", Str _town, _town_side ];
- Call Compile Format["if (IsNil ""%1SideID"") then {%1SideID = RESISTANCEID};",Str _camp];
- Call Compile Format["if (IsNil ""%1SupplyValue"") then {%1SupplyValue = %2SupplyValue};",Str _camp,Str _town];
- if (IsServer) then {
- _flagType = "FlagCarrierINDFOR_EP1";
- if (PkgA2) then {_flagType = "FlagCarrierGUE"};
- _flagPole = _flagType CreateVehicle GetPos _camp;
- _flagPole SetFlagTexture "Client\Images\Flags\flag_resistance.paa";
- [_camp,_town,_flagPole] ExecVM "Server\Server_UpdateCamp.sqf";
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement