Advertisement
Guest User

Untitled

a guest
Apr 7th, 2020
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         private String GetObjectiveType(String InMapName, String InEvent)
  2.         {
  3.             // EXAMPLE: "UnrealGame.HoldObjective" (Package.Class)
  4.             // editor -> select gameobjective -> actor properties -> title of property window says class name
  5.             if(InMapName == "AS-BP2-SubRosa-LE[F3]")
  6.             {
  7.                 if(InEvent == "FrontGateDestroyed") return "DestroyableObjective_SM";
  8.                 if(InEvent == "FrontDoorOpened1") return "DestroyableObjective_SM";
  9.                 if(InEvent == "FrontDoorOpened2") return "DestroyableObjective_SM";
  10.                 if(InEvent == "CliffyKeys") return "HoldObjective";
  11.             }
  12.             return String.Empty;
  13.         }
  14.         private String GetObjectiveInfo(String InMapName, String InEvent)
  15.         {
  16.             // EXAMPLE: "Destroy The Main Gate." (SubRosa 1st Objective)
  17.             // editor -> select gameobjective -> actor properties -> assault section -> Objective_Info_Attacker
  18.             if(InMapName == "AS-BP2-SubRosa-LE[F3]")
  19.             {
  20.                 if(InEvent == "FrontGateDestroyed") return "Destroy The Main Gate.";
  21.                 if(InEvent == "FrontDoorOpened1") return "Destroy The Front Door Controls.";
  22.                 if(InEvent == "FrontDoorOpened2") return "Destroy The Front Door Controls.";
  23.                 if(InEvent == "CliffyKeys") return "Get the keys from the Central Office.";
  24.             }
  25.             return InEvent;
  26.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement