native BlzSetUnitAbilityCooldown takes unit whichUnit, integer abilId, integer level, real cooldown returns nothing
function UnitAddIndicatorBJ takes unit whichUnit, real red, real green, real blue, real transparency returns nothing
native SetUnitScale takes unit whichUnit, real scaleX, real scaleY, real scaleZ returns nothing
constant native IsUnitInRangeXY takes unit whichUnit, real x, real y, real distance returns boolean
function SetUnitScalePercent takes unit whichUnit, real percentScaleX, real percentScaleY, real percentScaleZ returns nothing
function SetUnitVertexColorBJ takes unit whichUnit, real red, real green, real blue, real transparency returns nothing
native UnitAddIndicator takes unit whichUnit, integer red, integer green, integer blue, integer alpha returns nothing
function UnitDamagePointLoc takes unit whichUnit, real delay, real radius, location loc, real amount, attacktype whichAttack, damagetype whichDamage returns boolean
native SetUnitLookAt takes unit whichUnit, string whichBone, unit lookAtTarget, real offsetX, real offsetY, real offsetZ returns nothing
native AddUnitToStock takes unit whichUnit, integer unitId, integer currentStock, integer stockMax returns nothing
native BlzSetUnitAbilityManaCost takes unit whichUnit, integer abilId, integer level, integer manaCost returns nothing
function AddUnitToStockBJ takes integer unitId, unit whichUnit, integer currentStock, integer stockMax returns nothing
native UnitApplyTimedLife takes unit whichUnit, integer buffId, real duration returns nothing
native UnitAddItemToSlotById takes unit whichUnit, integer itemId, integer itemSlot returns boolean
native SetUnitVertexColor takes unit whichUnit, integer red, integer green, integer blue, integer alpha returns nothing
native CreateMinimapIconOnUnit takes unit whichUnit, integer red, integer green, integer blue, string pingPath, fogstate fogVisibility returns minimapicon
function CreateMinimapIconOnUnitBJ takes unit whichUnit, integer red, integer green, integer blue, string pingPath, fogstate fogVisibility returns minimapicon
function CreateTextTagUnitBJ takes string s, unit whichUnit, real zOffset, real size, real red, real green, real blue, real transparency returns texttag
function ReplaceUnitBJ takes unit whichUnit, integer newUnitId, integer unitStateMethod returns unit
native BlzSetUnitDiceSides takes unit whichUnit, integer diceSides, integer weaponIndex returns nothing
native BlzSetUnitBaseDamage takes unit whichUnit, integer baseDamage, integer weaponIndex returns nothing
native BlzSetUnitDiceNumber takes unit whichUnit, integer diceNumber, integer weaponIndex returns nothing
native SetUnitAbilityLevel takes unit whichUnit, integer abilcode, integer level returns integer
native BlzGetUnitAbilityCooldown takes unit whichUnit, integer abilId, integer level returns real
native BlzStartUnitAbilityCooldown takes unit whichUnit, integer abilCode, real cooldown returns nothing
native BlzGetUnitAbilityManaCost takes unit whichUnit, integer abilId, integer level returns integer
native BlzSetUnitAttackCooldown takes unit whichUnit, real cooldown, integer weaponIndex returns nothing
function SetUnitAbilityLevelSwapped takes integer abilcode, unit whichUnit, integer level returns integer
function SaveUnitHandleBJ takes unit whichUnit, integer key, integer missionKey, hashtable table returns boolean
native BlzSetUnitWeaponRealField takes unit whichUnit, unitweaponrealfield whichField, integer index, real value returns boolean
function BlzSetUnitWeaponRealFieldBJ takes unit whichUnit, unitweaponrealfield whichField, integer index, real value returns nothing
native BlzSetUnitWeaponIntegerField takes unit whichUnit, unitweaponintegerfield whichField, integer index, integer value returns boolean
function BlzSetUnitWeaponIntegerFieldBJ takes unit whichUnit, unitweaponintegerfield whichField, integer index, integer value returns nothing
native UnitDamagePoint takes unit whichUnit, real delay, real radius, real x, real y, real amount, boolean attack, boolean ranged, attacktype attackType, damagetype damageType, weapontype weaponType returns boolean
native UnitUseItemPoint takes unit whichUnit, item whichItem, real x, real y returns boolean
native UnitDropItemPoint takes unit whichUnit, item whichItem, real x, real y returns boolean
function UnitDropItemPointBJ takes unit whichUnit, item whichItem, real x, real y returns boolean
function CreateNUnitsAtLoc takes integer count, integer unitId, player whichPlayer, location loc, real face returns group
native SetUnitPosition takes unit whichUnit, real newX, real newY returns nothing
native SetUnitFlyHeight takes unit whichUnit, real newHeight, real rate returns nothing
native IssueInstantPointOrderById takes unit whichUnit, integer order, real x, real y, widget instantTargetWidget returns boolean
native SetUnitFacingTimed takes unit whichUnit, real facingAngle, real duration returns nothing
function SetUnitFlyHeightBJ takes unit whichUnit, real newHeight, real rate returns nothing
native BlzCreateUnitWithSkin takes player id, integer unitid, real x, real y, real face, integer skinId returns unit
native CreateUnit takes player id, integer unitid, real x, real y, real face returns unit
function MeleeClearNearbyUnits takes real x, real y, real range returns nothing
native IssueNeutralPointOrderById takes player forWhichPlayer, unit neutralStructure, integer unitId, real x, real y returns boolean
function TransmissionFromUnitWithNameBJ takes force toForce, unit whichUnit, string unitName, sound soundHandle, string message, integer timeType, real timeVal, boolean wait returns nothing
native PlaceRandomUnit takes unitpool whichPool, player forWhichPlayer, real x, real y, real facing returns unit
function StartUnit takes integer ask_qty, integer unitid, integer town returns boolean
native SetUnitFog takes real a, real b, real c, real d, real e returns nothing
native CreateUnitByName takes player whichPlayer, string unitname, real x, real y, real face returns unit
native AddUnitToAllStock takes integer unitId, integer currentStock, integer stockMax returns nothing
function UnitDropItem takes unit inUnit, integer inItemID returns item
function UnitHasBuffBJ takes unit whichUnit, integer buffcode returns boolean
native UnitItemInSlot takes unit whichUnit, integer itemSlot returns item
native UnitAddAbility takes unit whichUnit, integer abilityId returns boolean
native UnitAddItemById takes unit whichUnit, integer itemId returns item
function UnitItemInSlotBJ takes unit whichUnit, integer itemSlot returns item
native UnitRemoveAbility takes unit whichUnit, integer abilityId returns boolean
native UnitStripHeroLevel takes unit whichHero, integer howManyLevels returns boolean
function UnitHasItemOfTypeBJ takes unit whichUnit, integer itemId returns boolean
native UnitModifySkillPoints takes unit whichHero, integer skillPointDelta returns boolean
native UnitRemoveItemFromSlot takes unit whichUnit, integer itemSlot returns item
native UnitSetUpgradeProgress takes unit whichUnit, integer upgradePercentage returns nothing
native MergeUnits takes integer qty, integer a, integer b, integer make returns boolean
native UnitSetConstructionProgress takes unit whichUnit, integer constructionPercentage returns nothing
function UnitRemoveBuffBJ takes integer buffcode, unit whichUnit returns boolean
function UnitAddAbilityBJ takes integer abilityId, unit whichUnit returns boolean
function UnitRemoveBuffsBJ takes integer buffType, unit whichUnit returns nothing
function TransmissionFromUnitTypeWithNameBJ takes force toForce, player fromPlayer, integer unitId, string unitName, location loc, sound soundHandle, string message, integer timeType, real timeVal, boolean wait returns nothing
function UnitRemoveAbilityBJ takes integer abilityId, unit whichUnit returns boolean
function UnitAddItemByIdSwapped takes integer itemId, unit whichHero returns item
function UnitRemoveItemFromSlotSwapped takes integer itemSlot, unit whichHero returns item
native UnitDropItemSlot takes unit whichUnit, item whichItem, integer slot returns boolean
function UnitDropItemSlotBJ takes unit whichUnit, item whichItem, integer slot returns boolean
native UnitPoolAddUnitType takes unitpool whichPool, integer unitId, real weight returns nothing
native UnitMakeAbilityPermanent takes unit whichUnit, boolean permanent, integer abilityId returns boolean
native RestoreUnit takes gamecache cache, string missionKey, string key, player forWhichPlayer, real x, real y, real facing returns unit
native SetUnitX takes unit whichUnit, real newX returns nothing
native SetUnitY takes unit whichUnit, real newY returns nothing
native ConvertUnits takes integer qty, integer id returns boolean
function WaitForUnits takes integer unitid, integer qty returns nothing
function CampaignMinimapIconUnitBJ takes unit whichUnit, integer style returns nothing
function GetItemOfTypeFromUnitBJ takes unit whichUnit, integer itemId returns item
native BlzSetUnitSkin takes unit whichUnit, integer skinId returns nothing
native BlzSetUnitMaxHP takes unit whichUnit, integer hp returns nothing
native BlzSetUnitArmor takes unit whichUnit, real armorAmount returns nothing
native SetUnitFacing takes unit whichUnit, real facingAngle returns nothing
function SetUnitLifeBJ takes unit whichUnit, real newValue returns nothing
function SetUnitManaBJ takes unit whichUnit, real newValue returns nothing
function UnitApplyTimedLifeBJ takes real duration, integer buffId, unit whichUnit returns nothing
native BlzSetUnitMaxMana takes unit whichUnit, integer mana returns nothing
native BlzGetUnitAbility takes unit whichUnit, integer abilId returns ability
native SetUnitUserData takes unit whichUnit, integer data returns nothing
native BlzSetUnitFacingEx takes unit whichUnit, real facingAngle returns nothing
native SetUnitMoveSpeed takes unit whichUnit, real newSpeed returns nothing
native SetUnitTurnSpeed takes unit whichUnit, real newTurnSpeed returns nothing
native SetUnitTimeScale takes unit whichUnit, real timeScale returns nothing
native SetUnitBlendTime takes unit whichUnit, real blendTime returns nothing