Advertisement
Guest User

Untitled

a guest
Feb 20th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. _westCasualty = "US" call FNC_CasualtyPercentage; //Gets the casualty percentage of team "USMC"
  2. _eastCasualty = "PLA" call FNC_CasualtyPercentage; //Gets the casualty percentage of team "VDV"
  3. _resistanceCasualty = "Phillipine Army" call FNC_CasualtyPercentage; //Gets the casualty percentage of team "VDV"
  4.  
  5. if (_westCasualty >= 100) exitWith {
  6.  
  7. "PLA DECISIVE VICTORY<br />US Forces have been eliminated." call FNC_EndMission;
  8.  
  9. };
  10.  
  11. if (_eastCasualty >= 80) exitWith {
  12.  
  13. "US DECISIVE VICTORY<br />PLA has retreated due to casualties." call FNC_EndMission;
  14.  
  15. };
  16.  
  17. if("WEST" == "marker" call FNC_isCaptured) exitWith {
  18.  
  19. "PLA DECISIVE VICTORY<br />US Forces have been captured." call FNC_EndMission;
  20.  
  21. };
  22. sleep (60); //This determines how frequently the end conditions should be checked in seconds
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement