• 0

    posted a message on Help ! Hero cant be recreated (Vehicle)

    @Hockleberry: Go

    I need to figure out how to create a new specific unit that isnt already on the map at starport spawn.

    Trigger: Dark Plane loading -------------------- bool gt_DarkPlaneloading_Func (bool testConds, bool runActions) { Actions if (!runActions) { return true; }

    UnitRemove(UnitFromId(533)); SoundtrackPlay(PlayerGroupAll(), c_soundtrackCategoryMusic, "THanson01MusicIntroB", c_soundtrackCueAny, c_soundtrackIndexAny, false); Wait(2.0, c_timeGame); return true; }

    -------------------- void gt_DarkPlaneloading_Init () { gt_DarkPlaneloading = TriggerCreate("gt_DarkPlaneloading_Func"); TriggerAddEventUnitRegion(gt_DarkPlaneloading, UnitRefFromUnit(UnitFromId(533)), RegionFromId(6), true); }

    -------------------- Trigger: Dark Plane loading 2 -------------------- bool gt_DarkPlaneloading2_Func (bool testConds, bool runActions) { Actions if (!runActions) { return true; }

    SoundtrackPlay(PlayerGroupAll(), c_soundtrackCategoryMusic, "THanson01MusicIntroB", c_soundtrackCueAny, c_soundtrackIndexAny, false); Wait(2.0, c_timeGame); UnitCreate(1, "Wraith", 0, 1, RegionGetCenter(RegionFromId(7)), 270.0); return true; }

    -------------------- void gt_DarkPlaneloading2_Init () { gt_DarkPlaneloading2 = TriggerCreate("gt_DarkPlaneloading2_Func"); TriggerAddEventUnitRemoved(gt_DarkPlaneloading2, UnitRefFromUnit(UnitFromId(533))); }

    -------------------- Trigger: Dark Plane unload -------------------- bool gt_DarkPlaneunload_Func (bool testConds, bool runActions) { Conditions if (testConds) { if (!(((UnitGetType(UnitLastCreated()) == "Wraith")))) { return false; } }

    Actions if (!runActions) { return true; }

    UnitRemove(UnitLastCreated()); UnitCreate(1, "Ghost", 0, 1, RegionGetCenter(RegionFromId(7)), 270.0); return true; }

    Posted in: Triggers
  • 0

    posted a message on Help ! Hero cant be recreated (Vehicle)

    Im trying to get my hero character to walk into an area (Starport) remove him and make a wraith at (StarportSpawn). After he is done the mission he flys back to the area (Starport) and the wraith is removed and my Hero is created again in area (StarportSpawn).

    Posted in: Triggers
  • To post a comment, please or register a new account.