GridStatusHostileUnit

This project is abandoned.

Whether this project is out of date or its author marked it as abandoned, this project is no longer maintained.

If you wish to take this project over, please report it and state your intentions.

Status indicator that shows if a unit is hostile (probably mindcontrolled)

You must login to post a comment. Don't have an account? Register to get one!

  • 2 comments
  • Avatar of Julith Julith Jan 21, 2009 at 09:59 UTC - 0 likes

    If "UnitIsEnemy()" still returns true for an enemy currently under mindcontrol I can add your fix.

  • Avatar of saiket saiket Jan 21, 2009 at 00:20 UTC - 0 likes

    Was it your intention to have friendly mind-controlled units show up as hostile even though they are not attackable? I understand that you use UnitIsCharmed for performance reasons, but having priests' mind controlled NPCs show up as hostile is confusing. Would it be possible to swap the original hostile check,

    local hostile = UnitIsCharmed(unitid)
    

    ...with this one that additionally checks hostility only if the unit is actually charmed?

    local hostile = UnitIsCharmed(unitid) and UnitIsEnemy(unitid, "player")
    


    The additional UnitIsEnemy call hardly affects performance in this case, because 99% of the time it won't be called.

  • 2 comments

Facts

Date created
Sep 28, 2008
Category
Last update
Aug 29, 2012
Development stage
Abandoned
Language
  • enUS
License
All Rights Reserved
Downloads
56,839
Recent files
  • R: v0.91-tov5.0 for 5.0.4 Aug 29, 2012
  • A: r59 for 5.0.4 Aug 29, 2012
  • A: r58 for 4.3.4 Aug 13, 2012
  • A: r57 for 4.2 Aug 08, 2011
  • R: v0.91 for 4.2 Jun 29, 2011

Authors