Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.89 KB | None | 0 0
  1. // Prototypes
  2. void sub2(int intParam1, string stringParam2, location locationParam3);
  3. void sub1(float floatParam1);
  4.  
  5. void sub2(int intParam1, string stringParam2, location locationParam3) {
  6.     object object1 = CreateObject(intParam1, stringParam2, locationParam3, 0);
  7.  
  8.     // set AI behavior: uwadmin12
  9.     if (GetLevelByClass(CLASS_TYPE_JEDIGUARDIAN, object1) > 0 || GetRacialType(object1) == RACIAL_TYPE_DROID) {
  10.         SetNPCAIStyle(object1, NPC_AISTYLE_JEDI_SUPPORT); // droid support / jedi support
  11.     }
  12. }
  13.  
  14. void sub1(float floatParam1) {
  15.     ActionPauseConversation();
  16.     DelayCommand(floatParam1, ActionResumeConversation());
  17. }
  18.  
  19. void main() {
  20.     object oSittingSelkath = GetObjectByTag("bp_calo_ambush1", 0);
  21.     object object3 = GetObjectByTag("bp_calo_ambush3", 0);
  22.     object oSittingRodian = GetObjectByTag("bp_calo_ambush2", 0);
  23.     object object7 = GetObjectByTag("bp_calo_ambush4", 0);
  24.     object oBp_calo_ambush = GetObjectByTag("bp_calo_ambush", 0);
  25.     location location1 = GetLocation(GetObjectByTag("ambush_jump_thug1", 0));
  26.     location location3 = GetLocation(GetObjectByTag("ambush_jump_thug3", 0));
  27.     location location5 = GetLocation(GetObjectByTag("ambush_jump_thug2", 0));
  28.     location location7 = GetLocation(GetObjectByTag("ambush_jump_thug4", 0));
  29.     location location9 = GetLocation(GetObjectByTag("ambush_jump_calo", 0));
  30.     object object16 = GetItemPossessedBy(oBp_calo_ambush, "G_W_HVYBLSTR01");
  31.     sub1(4.8);
  32.     DestroyObject(oSittingSelkath, 0.0, 0, 0.0);
  33.     DestroyObject(object3, 0.0, 0, 0.0);
  34.     DestroyObject(oSittingRodian, 0.0, 0, 0.0);
  35.     DestroyObject(object7, 0.0, 0, 0.0);
  36.     DestroyObject(oBp_calo_ambush, 0.0, 0, 0.0);
  37.     CreateObject(1, "bp_calo_ambush1", location1, 0);
  38.     DelayCommand(0.1, sub2(1, "bp_calo_ambush2", location5));
  39.     DelayCommand(0.2, sub2(1, "bp_calo_ambush4", location3));
  40.     DelayCommand(0.3, sub2(1, "bp_calo_ambush3", location7));
  41.     DelayCommand(0.4, sub2(1, "bp_calo_ambush_2", location9));
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement