Unit

Object

This file is a description of an object. This object is accessible as a global variable. Most of its methods do not expect an implicit “self” argument and should be invoked with a .

Methods

ScriptUIReturns. or :NameArguments
:ChangeActionCharges
:ChangeDamage
:ChangeExtraMoves
:ChangeMovesRemaining
:GetAbility
:GetActionCharges
:GetAirSlots
:GetAirUnits
:GetAntiAirCombat
:GetArchaeology
:GetArchaeologyHomeCity
:GetAttacksRemaining
:GetBarbarianTargetPlayer
:GetBarbarianTribeIndex
:GetBombardCombat
:GetBuildCharges
:GetChildIDs
:GetCombat
:GetComponentID
:GetDamage
:GetDisasterCharges
:GetDomain
UnitExperience:GetExperience
:GetExtraMoves
:GetFormationClass
:GetFormationID
:GetFormationMaxMoves
:GetFormationMovesRemaining
:GetFormationUnitCount
:GetFormationUnitIDs
:GetFormationUnits
:GetFortifyTurns
UnitGreatPerson:GetGreatPerson
:GetGreatWorkIndex
:GetHeroClassType
:GetID
UnitLocation [table]:GetLocation
:GetLootName
:GetMaxDamage
:GetMaxMoves
:GetMilitaryFormation
:GetMovementMovesRemaining
:GetMovesRemaining
:GetName
:GetOperationParameter
:GetOperationType
:GetOriginalOwner
:GetOwner
:GetParentID
:GetParkCharges
:GetPlotId
:GetProperties
:GetProperty
:GetPursuingSpyName
:GetRange
:GetRangedCombat
UnitReligion:GetReligion
:GetReligionType
:GetReligiousHealCharges
:GetReligiousStrength
:GetRockBand
:GetSpreadCharges
:GetSpyOperation
:GetSpyOperationEndTurn
UnitTrade:GetTrade
:GetType
:GetTypeHash
:GetUnitType
:GetUpgradeCost
:GetUpgradeResourceCost
:GetX
:GetY
:HasHiddenVisibility
:HasMovedIntoZOC
:HasPendingOperations
:IgnoresZOC
:IsAutomated
:IsCannotAttack
:IsDead
:IsDelayedDeath
:IsEmbarked
:IsGreatPerson
:IsHero
:IsHuman
:IsReadyToAutomate
:IsReadyToMove
:IsReadyToSelect
:SetActionCharges
:SetDamage
:SetFortifyTurns
:SetMilitaryFormation
:SetProperty