Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Prototypes
- void sub2(int intParam1, string stringParam2, location locationParam3);
- void sub1(float floatParam1);
- void sub2(int intParam1, string stringParam2, location locationParam3) {
- object object1 = CreateObject(intParam1, stringParam2, locationParam3, 0);
- // set AI behavior: uwadmin12
- if (GetLevelByClass(CLASS_TYPE_JEDIGUARDIAN, object1) > 0 || GetRacialType(object1) == RACIAL_TYPE_DROID) {
- SetNPCAIStyle(object1, NPC_AISTYLE_JEDI_SUPPORT); // droid support / jedi support
- }
- }
- void sub1(float floatParam1) {
- ActionPauseConversation();
- DelayCommand(floatParam1, ActionResumeConversation());
- }
- void main() {
- object oSittingSelkath = GetObjectByTag("bp_calo_ambush1", 0);
- object object3 = GetObjectByTag("bp_calo_ambush3", 0);
- object oSittingRodian = GetObjectByTag("bp_calo_ambush2", 0);
- object object7 = GetObjectByTag("bp_calo_ambush4", 0);
- object oBp_calo_ambush = GetObjectByTag("bp_calo_ambush", 0);
- location location1 = GetLocation(GetObjectByTag("ambush_jump_thug1", 0));
- location location3 = GetLocation(GetObjectByTag("ambush_jump_thug3", 0));
- location location5 = GetLocation(GetObjectByTag("ambush_jump_thug2", 0));
- location location7 = GetLocation(GetObjectByTag("ambush_jump_thug4", 0));
- location location9 = GetLocation(GetObjectByTag("ambush_jump_calo", 0));
- object object16 = GetItemPossessedBy(oBp_calo_ambush, "G_W_HVYBLSTR01");
- sub1(4.8);
- DestroyObject(oSittingSelkath, 0.0, 0, 0.0);
- DestroyObject(object3, 0.0, 0, 0.0);
- DestroyObject(oSittingRodian, 0.0, 0, 0.0);
- DestroyObject(object7, 0.0, 0, 0.0);
- DestroyObject(oBp_calo_ambush, 0.0, 0, 0.0);
- CreateObject(1, "bp_calo_ambush1", location1, 0);
- DelayCommand(0.1, sub2(1, "bp_calo_ambush2", location5));
- DelayCommand(0.2, sub2(1, "bp_calo_ambush4", location3));
- DelayCommand(0.3, sub2(1, "bp_calo_ambush3", location7));
- DelayCommand(0.4, sub2(1, "bp_calo_ambush_2", location9));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement