Determines if a given unit is a player character. This can be any player character, inc. yourself.


Parameters Edit

Arguments Edit

string - A UnitId to query, e.g. "target", "focus1".

Returns Edit

Boolean value - true if the given unit is a player character, false otherwise.

Example Edit

isPlayer = UnitIsPlayer("target");

Notes Edit

Related Functions Edit

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.