Neccta
Exalted Member
What's the difference with "function creature.phase1" and "function creature_phase1"?
What does :RemoveEventById(event) remove? If I were to put it after PerfomIngameSpawn would it have the same effect? Take this code for example:
If I were doing an event with waves of creatures how would I start the next wave after all creatures have died?
One Idea I had was to use :GetCreaturesInRange because it returns a table of creatures in the given range. Then to use :IsDead(). However I would need to use different entries for each creature. Do you have another idea to do this?
What does :RemoveEventById(event) remove? If I were to put it after PerfomIngameSpawn would it have the same effect? Take this code for example:
Code:
function Narillasanz.Phase4(event, delay, pCall, creature)
if (creature:HealthBelowPct(55)) then
creature:RemoveEventById(event)
creature:SendUnitYell("Let the fire rain down from heaven!", 0)
PerformIngameSpawn(1, 32803, 615, creature:GetInstanceId(), 3235.044, 683.5206, 90.111, 4.7906, 0, 7000, 1)
creature:RegisterEvent(Narillasanz.Phase5, 1000, 0)
end
end
If I were doing an event with waves of creatures how would I start the next wave after all creatures have died?
One Idea I had was to use :GetCreaturesInRange because it returns a table of creatures in the given range. Then to use :IsDead(). However I would need to use different entries for each creature. Do you have another idea to do this?