Advertisement
Guest User

spindler

a guest
Sep 7th, 2011
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. _camp = _this Select 0;
  2. _town = _this Select 1;
  3.  
  4. Call Compile Format["if (IsNil ""%1Camps"") then {%1Camps = []};",Str _town];
  5. Call Compile Format["%1Camps = %1Camps + [_camp]",Str _town];
  6.  
  7. _index = Call Compile Format["%1Camps Find _camp",Str _town];
  8. _marker = Format["%1Camp%2",Str _town,_index];
  9. CreateMarkerLocal [_marker,GetPos _camp];
  10. _marker SetMarkerTypeLocal "Strongpoint";
  11. _marker SetMarkerColorLocal "ColorBlue";
  12. _marker SetMarkerSizeLocal [0.5,0.5];
  13.  
  14. waitUntil {commonInitComplete};
  15.  
  16. Sleep 10;
  17.  
  18. _town_side = _town getVariable Format["%1SideID", Str _town];
  19. diag_log format["[TeTeT] LOG: SideID of town %1: %2", Str _town, _town_side ];
  20. Call Compile Format["if (IsNil ""%1SideID"") then {%1SideID = RESISTANCEID};",Str _camp];
  21. Call Compile Format["if (IsNil ""%1SupplyValue"") then {%1SupplyValue = %2SupplyValue};",Str _camp,Str _town];
  22.  
  23. if (IsServer) then {
  24. _flagType = "FlagCarrierINDFOR_EP1";
  25. if (PkgA2) then {_flagType = "FlagCarrierGUE"};
  26. _flagPole = _flagType CreateVehicle GetPos _camp;
  27. _flagPole SetFlagTexture "Client\Images\Flags\flag_resistance.paa";
  28. [_camp,_town,_flagPole] ExecVM "Server\Server_UpdateCamp.sqf";
  29. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement