Wikia

WoWWiki

Watchlist Recent changes

API UnitIsCivilian

Main Menue



Determine whether a unit is a civilian (low level enemy faction NPC that counts as a dishonorable kill).

isCivilian = UnitIsCivilian(unit)

Contents

Parameters Edit

Arguments Edit

unit 
String - The UnitId of the unit to check (Tested with hostile "target")

Returns Edit

isCivilian 
Flag - Returns 1 if the unit is a civilian, nil otherwise.

Example Edit

if (UnitIsCivilian("target")==1) then DEFAULT_CHAT_FRAME:AddMessage("Target is a civilian", 1, 1, 0) end;

Notes Edit

  • No longer used by FrameXML as of 2.0, because of the new honor system.

Pages on WoWWiki

94,195pages on
this wiki
Advertisement | Your ad here

Latest Photos

Add a Photo
55,622photos on this wiki
See more >

Recent Wiki Activity

See more >

Recent Questions

Around Wikia's network

Random Wiki