Jump to content

Fight Class - Check if Target is Humanoid


Recommended Posts

Hi, I didn't see anything in the Creator Spell Conditions if there is a way to check if my target is humanoid? I would like to be able to cast Hamstring if so.

Link to comment
Share on other sites

I have an idea using Lua Script, but not sure exactly what return value research and return value var are, and how to appropriately use them.

Script:

myTarget = UnitCreatureType("target")
If myTarget == "Humanoid"
     return true
else
     return false
end

 

Link to comment
Share on other sites

Compilator Error:

Quote

CS0234: The type or namespace name 'Target' does not exist in the namespace 'wManager.Wow.ObjectManager' (are you missing an assembly reference?)


 

Link to comment
Share on other sites

10 hours ago, Zan said:

That's interesting. I've been using that for pickpocketing on my Rogue on Live. 

Target is just the GUID if i'm not wrong and TargetObject will be the WoWUnitObject.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...