• 0

    posted a message on [Video, Triggers] Hero Revival

    @deleted_4934777: Go

    yo chump, i was having this same problem cuz i'm cool and found the following info helpful [Trigger Help] Getting Error I can't figure out.

    QFT, "Essentially it's trying to create a unit of type PlayerCharacterType[16], which doesn't exist. My only guess as to why your conditions don't stop this is because you have a wait 2 seconds timer; and I think that during those 2 seconds the ownership of said dying unit might somehow switch (to player 16? because unit decays?). What you may want to do is use a local variable int PlayerOwn = 0 then run set PlayerOwn = TriggeringPlayer at the very beginning of the trigger. Then instead of TriggeringPlayer, use the variable PlayerOwn. That way, if the ownership of dying unit somehow switches during those 2 seconds of game-time, it won't matter."

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