List of Dota 2 Scaleform Script Functions
Jump to navigation
Jump to search
This list contains many of the class functions available for use with Scaleform HUD scripting in Dota 2 .
Players
!Interface to player data
Function | Signature | Description |
---|---|---|
CanPlayerBuyback | bool CanPlayerBuyback( int )
|
Can the player buy back? |
GetAssists | int GetAssists( int )
|
The number of assists credited to a player. |
GetClaimedDenies | int GetClaimedDenies( int )
|
|
GetClaimedMisses | int GetClaimedMisses( int )
|
|
GetDeaths | int GetDeaths( int )
|
The number of deaths a player has suffered. |
GetDenies | int GetDenies( int )
|
The number of denies credited to a player. |
GetGold | int GetGold( int )
|
The amount of gold a player has. |
GetGoldBagsCollected | int GetGoldBagsCollected( int )
|
The number of gold bags collected by a player. |
GetKills | int GetKills( int )
|
The number of kills credited to a player. |
GetLastBuybackTime | int GetLastBuybackTime( int )
|
|
GetLastHitMultikill | int GetLastHitMultikill( int )
|
|
GetLastHits | int GetLastHits( int )
|
The number of last hits credited to a player. |
GetLastHitStreak | int GetLastHitStreak( int )
|
|
GetLevel | int GetLevel( int )
|
The current level of a player. |
GetMisses | int GetMisses( int )
|
|
GetNearbyCreepDeaths | int GetNearbyCreepDeaths( int )
|
|
GetReliableGold | int GetReliableGold( int )
|
Total reliable gold for this player. |
GetRespawnSeconds | int GetRespawnSeconds( int )
|
|
GetStreak | int GetStreak( int )
|
|
GetTotalEarnedGold | int GetTotalEarnedGold( int )
|
Total gold earned in this game by this player. |
GetTotalEarnedXP | int GetTotalEarnedXP( int )
|
Total xp earned in this game by this player. |
GetUnreliableGold | int GetUnreliableGold( int )
|
Total unreliable gold for this player. |
GetGoldPerMin | float GetGoldPerMin( int )
|
Average gold earned per minute for this player. |
GetXPPerMin | float GetXPPerMin( int )
|
Average xp earned per minute for this player. |
GetMaxPlayers | int GetMaxPlayers()
|
Get the maximum number of players in the game. |
GetMaxTeamPlayers | int GetMaxTeamPlayers()
|
Get the maximum number of players on teams. |
GetLocalPlayer | int GetLocalPlayer()
|
Get the local player ID. |
IsValidPlayer | bool IsValidPlayer( int )
|
Is the nth player a valid player? |
GetPlayerName | variant GetPlayerName( int )
|
Return the name of a player. |
GetPlayerSelectedHero | cstring GetPlayerSelectedHero( int )
|
Return the name of the hero a player is controlling. |
GetPlayerHeroEntityIndex | int GetPlayerHeroEntityIndex( int )
|
Get the entity index of the hero controlled by this player. |
GetSelectedEntities | hscript GetSelectedEntities( int )
|
Get the entities this player has selected. |
GetQueryUnit | int GetQueryUnit( int )
|
Get the entities this player is querying. |
GetPlayerColor | color GetPlayerColor( int )
|
Get the player color. |
IsSpectator | bool IsSpectator( int )
|
Is this player a spectator. |
Entities
!Interface to entity data
Function | Signature | Description |
---|---|---|
GetAllBuildingEntities | hscript GetAllBuildingEntities()
|
Get all the building entities. |
GetAllHeroEntities | hscript GetAllHeroEntities()
|
Get all the hero entities. |
GetAllCreatureEntities | hscript GetAllCreatureEntities()
|
Get all the creature entities. |
GetAllEntities | hscript GetAllEntities()
|
Get all the entities. |
GetAbsOrigin | vector GetAbsOrigin( int )
|
Get the world origin of the entity. |
CanBeDominated | bool CanBeDominated( int )
|
|
HasAttackCapability | bool HasAttackCapability( int )
|
|
HasCastableAbilities | bool HasCastableAbilities( int )
|
|
HasFlyingVision | bool HasFlyingVision( int )
|
|
HasFlyMovementCapability | bool HasFlyMovementCapability( int )
|
|
HasGroundMovementCapability | bool HasGroundMovementCapability( int )
|
|
HasMovementCapability | bool HasMovementCapability( int )
|
|
HasScepter | bool HasScepter( int )
|
|
HasUpgradeableAbilities | bool HasUpgradeableAbilities( int )
|
|
HasUpgradeableAbilitiesThatArentMaxed | bool HasUpgradeableAbilitiesThatArentMaxed( int )
|
|
IsAncient | bool IsAncient( int )
|
|
IsAttackImmune | bool IsAttackImmune( int )
|
|
IsBarracks | bool IsBarracks( int )
|
|
IsBlind | bool IsBlind( int )
|
|
IsBlockDisabled | bool IsBlockDisabled( int )
|
|
IsBoss | bool IsBoss( int )
|
|
IsBuilding | bool IsBuilding( int )
|
|
IsCommandRestricted | bool IsCommandRestricted( int )
|
|
IsConsideredHero | bool IsConsideredHero( int )
|
|
IsControllableByAnyPlayer | bool IsControllableByAnyPlayer( int )
|
|
IsCourier | bool IsCourier( int )
|
|
IsCreature | bool IsCreature( int )
|
|
IsCreep | bool IsCreep( int )
|
|
IsCreepHero | bool IsCreepHero( int )
|
|
IsDeniable | bool IsDeniable( int )
|
|
IsDominated | bool IsDominated( int )
|
|
IsEnemy | bool IsEnemy( int )
|
|
IsEvadeDisabled | bool IsEvadeDisabled( int )
|
|
IsFamiliar | bool IsFamiliar( int )
|
|
IsFort | bool IsFort( int )
|
|
IsFrozen | bool IsFrozen( int )
|
|
IsGeneratedByEconItem | bool IsGeneratedByEconItem( int )
|
|
IsGreevil | bool IsGreevil( int )
|
|
IsHallofFame | bool IsHallofFame( int )
|
|
IsHardDisarmed | bool IsHardDisarmed( int )
|
|
IsHero | bool IsHero( int )
|
|
IsHexed | bool IsHexed( int )
|
|
IsIllusion | bool IsIllusion( int )
|
|
IsInRangeOfFountain | bool IsInRangeOfFountain( int )
|
|
IsInventoryEnabled | bool IsInventoryEnabled( int )
|
|
IsInvisible | bool IsInvisible( int )
|
|
IsInvulnerable | bool IsInvulnerable( int )
|
|
IsLaneCreep | bool IsLaneCreep( int )
|
|
IsLootGreevil | bool IsLootGreevil( int )
|
|
IsLowAttackPriority | bool IsLowAttackPriority( int )
|
|
IsMagicImmune | bool IsMagicImmune( int )
|
|
IsMechanical | bool IsMechanical( int )
|
|
IsMuted | bool IsMuted( int )
|
|
IsNeutralUnitType | bool IsNeutralUnitType( int )
|
|
IsNightmared | bool IsNightmared( int )
|
|
IsOther | bool IsOther( int )
|
|
IsOutOfGame | bool IsOutOfGame( int )
|
|
IsOwnedByAnyPlayer | bool IsOwnedByAnyPlayer( int )
|
|
IsPhantom | bool IsPhantom( int )
|
|
IsRangedAttacker | bool IsRangedAttacker( int )
|
|
IsRealHero | bool IsRealHero( int )
|
|
IsRooted | bool IsRooted( int )
|
|
IsSelectable | bool IsSelectable( int )
|
|
IsShop | bool IsShop( int )
|
|
IsSilenced | bool IsSilenced( int )
|
|
IsSoftDisarmed | bool IsSoftDisarmed( int )
|
|
IsSpeciallyDeniable | bool IsSpeciallyDeniable( int )
|
|
IsStunned | bool IsStunned( int )
|
|
IsSummoned | bool IsSummoned( int )
|
|
IsTower | bool IsTower( int )
|
|
IsUnselectable | bool IsUnselectable( int )
|
|
IsWard | bool IsWard( int )
|
|
IsZombie | bool IsZombie( int )
|
|
NoHealthBar | bool NoHealthBar( int )
|
|
NoTeamMoveTo | bool NoTeamMoveTo( int )
|
|
NoTeamSelect | bool NoTeamSelect( int )
|
|
NotOnMinimap | bool NotOnMinimap( int )
|
|
NotOnMinimapForEnemies | bool NotOnMinimapForEnemies( int )
|
|
NoUnitCollision | bool NoUnitCollision( int )
|
|
PassivesDisabled | bool PassivesDisabled( int )
|
|
ProvidesVision | bool ProvidesVision( int )
|
|
UsesHeroAbilityNumbers | bool UsesHeroAbilityNumbers( int )
|
|
GetAbilityCount | int GetAbilityCount( int )
|
|
GetCombatClassAttack | int GetCombatClassAttack( int )
|
|
GetCombatClassDefend | int GetCombatClassDefend( int )
|
|
GetCurrentVisionRange | int GetCurrentVisionRange( int )
|
|
GetDamageBonus | int GetDamageBonus( int )
|
|
GetDamageMax | int GetDamageMax( int )
|
|
GetDamageMin | int GetDamageMin( int )
|
|
GetDayTimeVisionRange | int GetDayTimeVisionRange( int )
|
|
GetHealth | int GetHealth( int )
|
|
GetHealthPercent | int GetHealthPercent( int )
|
|
GetHealthThinkRegen | int GetHealthThinkRegen( int )
|
|
GetLevel | int GetLevel( int )
|
|
GetMaxHealth | int GetMaxHealth( int )
|
|
GetNightTimeVisionRange | int GetNightTimeVisionRange( int )
|
|
GetStates | int GetStates( int )
|
|
GetTotalPurchasedUpgradeGoldCost | int GetTotalPurchasedUpgradeGoldCost( int )
|
|
GetAttackRange | float GetAttackRange( int )
|
|
GetAttackSpeed | float GetAttackSpeed( int )
|
|
GetAttacksPerSecond | float GetAttacksPerSecond( int )
|
|
GetBaseAttackTime | float GetBaseAttackTime( int )
|
|
GetBaseMagicalResistanceValue | float GetBaseMagicalResistanceValue( int )
|
|
GetBaseMoveSpeed | float GetBaseMoveSpeed( int )
|
|
GetCollisionPadding | float GetCollisionPadding( int )
|
|
GetEffectiveInvisibilityLevel | float GetEffectiveInvisibilityLevel( int )
|
|
GetHasteFactor | float GetHasteFactor( int )
|
|
GetHullRadius | float GetHullRadius( int )
|
|
GetIdealSpeed | float GetIdealSpeed( int )
|
|
GetIncreasedAttackSpeed | float GetIncreasedAttackSpeed( int )
|
|
GetMana | float GetMana( int )
|
|
GetManaThinkRegen | float GetManaThinkRegen( int )
|
|
GetMaxMana | float GetMaxMana( int )
|
|
GetPaddedCollisionRadius | float GetPaddedCollisionRadius( int )
|
|
GetPercentInvisible | float GetPercentInvisible( int )
|
|
GetProjectileCollisionSize | float GetProjectileCollisionSize( int )
|
|
GetRingRadius | float GetRingRadius( int )
|
|
GetSecondsPerAttack | float GetSecondsPerAttack( int )
|
|
ManaFraction | float ManaFraction( int )
|
|
GetClassname | cstring GetClassname( int )
|
|
GetDisplayedUnitName | cstring GetDisplayedUnitName( int )
|
|
GetSelectionGroup | cstring GetSelectionGroup( int )
|
|
GetSoundSet | cstring GetSoundSet( int )
|
|
GetUnitLabel | cstring GetUnitLabel( int )
|
|
GetUnitName | cstring GetUnitName( int )
|
|
IsControllableByPlayer | bool IsControllableByPlayer( int, int )
|
|
GetChosenTarget | int GetChosenTarget( int )
|
|
HasItemInInventory | bool HasItemInInventory( int, cstring )
|
|
GetRangeToUnit | float GetRangeToUnit( int, int )
|
|
GetMoveSpeedModifier | float GetMoveSpeedModifier( int, float )
|
|
CanAcceptTargetToAttack | bool CanAcceptTargetToAttack( int, int )
|
|
IsEntityInRange | bool IsEntityInRange( int, int, float )
|
|
InState | bool InState( int, int )
|
|
GetArmorForDamageType | float GetArmorForDamageType( int, int )
|
|
GetArmorReductionForDamageType | float GetArmorReductionForDamageType( int, int )
|
|
IsInRangeOfShop | bool IsInRangeOfShop( int, int, bool )
|
|
GetNumItemsInStash | int GetNumItemsInStash( int )
|
|
GetNumItemsInInventory | int GetNumItemsInInventory( int )
|
|
GetItemInSlot | int GetItemInSlot( int, int )
|
|
GetAbility | int GetAbility( int, int )
|
|
GetAbilityByName | int GetAbilityByName( int, cstring )
|
|
GetSelectionEntities | hscript GetSelectionEntities( int )
|
Abilities
!Interface to ability data
Function | Signature | Description |
---|---|---|
GetAbilityName | cstring GetAbilityName( int )
|
|
GetAbilityTextureName | cstring GetAbilityTextureName( int )
|
|
GetAssociatedPrimaryAbilities | cstring GetAssociatedPrimaryAbilities( int )
|
|
GetAssociatedSecondaryAbilities | cstring GetAssociatedSecondaryAbilities( int )
|
|
GetHotkeyOverride | cstring GetHotkeyOverride( int )
|
|
GetIntrinsicModifierName | cstring GetIntrinsicModifierName( int )
|
|
GetSharedCooldownName | cstring GetSharedCooldownName( int )
|
|
AbilityReady | int AbilityReady( int )
|
|
CanAbilityBeUpgraded | int CanAbilityBeUpgraded( int )
|
|
CanBeExecuted | int CanBeExecuted( int )
|
|
GetAbilityDamage | int GetAbilityDamage( int )
|
|
GetAbilityDamageType | int GetAbilityDamageType( int )
|
|
GetAbilityTargetFlags | int GetAbilityTargetFlags( int )
|
|
GetAbilityTargetTeam | int GetAbilityTargetTeam( int )
|
|
GetAbilityTargetType | int GetAbilityTargetType( int )
|
|
GetAbilityType | int GetAbilityType( int )
|
|
GetBehavior | int GetBehavior( int )
|
|
GetCastRange | int GetCastRange( int )
|
|
GetChannelledManaCostPerSecond | int GetChannelledManaCostPerSecond( int )
|
|
GetCurrentCharges | int GetCurrentCharges( int )
|
|
GetEffectiveLevel | int GetEffectiveLevel( int )
|
|
GetHeroLevelRequiredToUpgrade | int GetHeroLevelRequiredToUpgrade( int )
|
|
GetLevel | int GetLevel( int )
|
|
GetManaCost | int GetManaCost( int )
|
|
GetMaxLevel | int GetMaxLevel( int )
|
|
AttemptToUpgrade | bool AttemptToUpgrade( int )
|
|
CanLearn | bool CanLearn( int )
|
|
GetAutoCastState | bool GetAutoCastState( int )
|
|
GetToggleState | bool GetToggleState( int )
|
|
HasScepterUpgradeTooltip | bool HasScepterUpgradeTooltip( int )
|
|
IsActivated | bool IsActivated( int )
|
|
IsActivatedChanging | bool IsActivatedChanging( int )
|
|
IsAttributeBonus | bool IsAttributeBonus( int )
|
|
IsAutocast | bool IsAutocast( int )
|
|
IsCooldownReady | bool IsCooldownReady( int )
|
|
IsCosmetic | bool IsCosmetic( int )
|
|
IsHidden | bool IsHidden( int )
|
|
IsHiddenWhenStolen | bool IsHiddenWhenStolen( int )
|
|
IsInAbilityPhase | bool IsInAbilityPhase( int )
|
|
IsItem | bool IsItem( int )
|
|
IsMarkedAsDirty | bool IsMarkedAsDirty( int )
|
|
IsMuted | bool IsMuted( int )
|
|
IsOnCastbar | bool IsOnCastbar( int )
|
|
IsOnLearnbar | bool IsOnLearnbar( int )
|
|
IsOwnersGoldEnough | bool IsOwnersGoldEnough( int )
|
|
IsOwnersGoldEnoughForUpgrade | bool IsOwnersGoldEnoughForUpgrade( int )
|
|
IsOwnersManaEnough | bool IsOwnersManaEnough( int )
|
|
IsPassive | bool IsPassive( int )
|
|
IsRecipe | bool IsRecipe( int )
|
|
IsSharedWithTeammates | bool IsSharedWithTeammates( int )
|
|
IsStealable | bool IsStealable( int )
|
|
IsStolen | bool IsStolen( int )
|
|
GetAOERadius | float GetAOERadius( int )
|
|
GetBackswingTime | float GetBackswingTime( int )
|
|
GetCastPoint | float GetCastPoint( int )
|
|
GetChannelStartTime | float GetChannelStartTime( int )
|
|
GetChannelTime | float GetChannelTime( int )
|
|
GetCooldown | float GetCooldown( int )
|
|
GetCooldownLength | float GetCooldownLength( int )
|
|
GetCooldownTime | float GetCooldownTime( int )
|
|
GetCooldownTimeRemaining | float GetCooldownTimeRemaining( int )
|
|
GetDuration | float GetDuration( int )
|
|
GetUpgradeBlend | float GetUpgradeBlend( int )
|
|
GetCaster | int GetCaster( int )
|
|
GetCustomValueFor | float GetCustomValueFor( int, cstring )
|
|
GetLevelSpecialValueFor | variant GetLevelSpecialValueFor( int, cstring, int )
|
|
GetSpecialValueFor | variant GetSpecialValueFor( int, cstring )
|
Items
!Interface to item data
Function | Signature | Description |
---|---|---|
AlwaysDisplayCharges | bool AlwaysDisplayCharges( int )
|
|
CanBeSoldByLocalPlayer | bool CanBeSoldByLocalPlayer( int )
|
|
CanDoubleTapCast | bool CanDoubleTapCast( int )
|
|
ForceHideCharges | bool ForceHideCharges( int )
|
|
IsAlertableItem | bool IsAlertableItem( int )
|
|
IsCastOnPickup | bool IsCastOnPickup( int )
|
|
IsDisassemblable | bool IsDisassemblable( int )
|
|
IsDroppable | bool IsDroppable( int )
|
|
IsInnatelyDisassemblable | bool IsInnatelyDisassemblable( int )
|
|
IsKillable | bool IsKillable( int )
|
|
IsMuted | bool IsMuted( int )
|
|
IsPermanent | bool IsPermanent( int )
|
|
IsPurchasable | bool IsPurchasable( int )
|
|
IsRecipe | bool IsRecipe( int )
|
|
IsRecipeGenerated | bool IsRecipeGenerated( int )
|
|
IsSellable | bool IsSellable( int )
|
|
IsStackable | bool IsStackable( int )
|
|
ProRatesChargesWhenSelling | bool ProRatesChargesWhenSelling( int )
|
|
RequiresCharges | bool RequiresCharges( int )
|
|
CanBeExecuted | int CanBeExecuted( int )
|
|
GetCost | int GetCost( int )
|
|
GetCurrentCharges | int GetCurrentCharges( int )
|
|
GetDisplayedCharges | int GetDisplayedCharges( int )
|
|
GetInitialCharges | int GetInitialCharges( int )
|
|
GetItemColor | int GetItemColor( int )
|
|
GetShareability | int GetShareability( int )
|
|
GetAbilityTextureSF | cstring GetAbilityTextureSF( int )
|
|
GetAssembledTime | float GetAssembledTime( int )
|
|
GetPurchaseTime | float GetPurchaseTime( int )
|
|
GetPurchaser | int GetPurchaser( int )
|
Game
!Interface to game data
Function | Signature | Description |
---|---|---|
Time | float Time()
|
|
IsHUDFlipped | bool IsHUDFlipped()
|