• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Event for resurrection?

Status
Not open for further replies.
Level 28
Joined
Mar 25, 2008
Messages
2,955
ohai :)
i'm using a resurrection ability for a unit which shall move to a certain point after being resurrected but i neither can find the right event for that (unit starts the effect of an ablity doesn't seem to work)
My trigger (if needed) is like this:
  • res
    • Events
      • Unit - A unit starts the effect of an ability
    • Conditions
      • (Red <gen> contains (Triggering unit)) Equal to True
      • (Ability being cast) Gleich Resurrection
    • Actions
      • Set split_tmppkt = (Center of Red wp11 <gen>)
      • Unit - Order (Triggering unit) to Move to split_tmppkt
      • Custom script: call RemoveLocation(udg_split_tmppkt)
What's wrong with this?

ah well, someone move this please into the triggersection >.<
 
Level 28
Joined
Mar 25, 2008
Messages
2,955
What kind of ability is it?

Auto-cast abilities does not work with it, I think.
It's 'resurrection' and therefore (i suppose) passive.

Eleandor said:
Try "Unit finishes casting an ability"

It's possible that by using that event you lose your point variable though... Not sure.
I tried - yet no success.

I solved part of it using a "Create 1 unit-type of dying unit at *position-bla* facing bla". It doesn't look so pretty but it works ^^
 
Status
Not open for further replies.
Top