List of Dota 2 Scaleform Script Functions

From Valve Developer Community
Jump to: navigation, search

This list contains many of the class functions available for use with Scaleform HUD scripting in Dota 2 Dota 2 .

gameAPI functions

All panel types have access to a gameAPI object with a varying number of functions that can be called to interact with the game. These are listed here by panel type, with the exception of the first group which exist on all panels.

Panels can call their own gameAPI functions by using gameAPI.funcName, or another panel's gameAPI function by using globals.Loader_panelName.gameAPI.funcName, replacing panelName with the panel name.

All panels

Function Signature Description
OnLoadFinished void OnLoadFinished( MovieClip object, int slot )
OnReady void OnReady()
OnLoadProgress void OnLoadProgress( int bytesLoaded, int bytesTotal )
OnLoadError void OnLoadError()
OnUnload bool OnUnload()

custom

Function Signature Description
TestProjectCallingIntoGame void TestProjectCallingIntoGame()
SubscribeToGameEvent void SubscribeToGameEvent( string, function )
SendServerCommand void SendServerCommand( string )

actionpanel

  • OnStatsTooltipVisibilityChange
  • OnHallofFameTooltipVisibilityChange
  • OnDmgArmorTooltipVisibilityChange
  • OnLevelUpButtonPressed
  • OnLevelUpStats
  • OnLevelUpAbility
  • OnPortraitMousePressed
  • OnPortraitMouseReleased
  • OnPortraitDoubleClick
  • OnAbilityClicked
  • OnShowAbilityTooltip
  • OnHideAbilityTooltip
  • OnShowBuffTooltip
  • OnHideBuffTooltip
  • OnBuyBackClick
  • OnShowAbilityBuildTooltip
  • OnShowInvokeListTooltip
  • OnHideInvokeListTooltip
  • SetPortraitPosition
  • PostOnResize
  • OnMultiUnitPageClick
  • OnMultiUnitSlotPressed
  • OnInspectMousePressed
  • OnHeroViewMousePressed
  • OnShowEconItemTooltip
  • OnHideEconItemTooltip
  • OnHighlightElement

broadcaster

  • OnSelectBroadcaster
  • OnSelectNoBroadcaster

hud_chat

  • ChatSay
  • ChatCancel
  • OnHistoryUpPress
  • OnHistoryDownPress
  • OnHistoryFullDownPress
  • chatLineClicked
  • ChatSetCurrentTab
  • LeaveChatChannel

chat_wheel

  • SetChatWheelState

coach

  • OnSelectPlayer
  • OnSetMinimized
  • OnCoachClickedOnHUD

combat_log

  • OnCheckboxesChanged
  • OnRefreshClicked
  • OnCombatLogClosed
  • OnIntervalSliderChanged
  • OnAttackerComboChanged
  • OnTargetComboChanged
  • CopySelectedText

gameend

  • OnFinishButtonPress
  • PlayerNameClicked
  • PlayerNameClicked_AccountID
  • LocalPlayerNameClicked
  • OnFinishedAnimatingTimedReward
  • ShowEconItemTooltip
  • HideEconItemTooltip
  • OnItemLanded
  • OnDebugRestartAnimButtonClicked
  • PlayLootSpeech
  • ShowItemTooltip
  • HideItemTooltip
  • OnBestTimeDetailsClicked

guide_panel

  • OnScrollBarChanged
  • OnGuidePanelShown
  • OnGuidePanelHidden
  • OnGuideChooserRefreshPressed
  • OnGuideSelectButtonPressed
  • OnGuideChooserDialogShown
  • OnGuideChooserDialogHidden
  • OnGuideChooserDialogClosed
  • OnGuideListEntrySelected
  • OnGuideUpVote
  • OnGuideDownVote
  • OnSubscribeClicked
  • OnUnsubscribeClicked
  • ShowAbilityTooltip
  • HideAbilityTooltip
  • ShowItemTooltip
  • HideItemTooltip
  • OnPurchaseItem
  • OnSetQuickBuy
  • OnStartShopItemDrag
  • OnEndShopItemDrag
  • OnLanguageFilterSelected

halloween

  • ShowEconItemTooltip
  • HideEconItemTooltip

herodisplay

  • OnSlotPressed
  • OnSlotDoublePressed

heroselection

  • OnChooseSelectedHero
  • OnChooseCaptain
  • OnChooseRandomHero
  • OnChooseRepickHero
  • OnSelectHero
  • OnClickTopHero
  • OnHeroRollOver
  • OnHeroRollOut
  • OnChatSubmitted
  • OnComboItemClicked
  • OnSearchTextChanged
  • OnSkillRollOut
  • OnSkillRollOver

shared_heroselectorandloadout

  • OnChooseSelectedHero
  • OnChooseRandomHero
  • OnAllHeroesCheckboxChanged
  • OnComboBoxChanged
  • SetTurntableMovement
  • SelectHeroStartingWith
  • HandleKeypress
  • OnClickTurntableHero
  • ShowEconItemTooltip
  • HideEconItemTooltip
  • EconItemButtonPressed
  • NextPage
  • PrevPage
  • BackButtonClicked
  • PlayButtonClicked
  • BackToLoadoutButtonClicked
  • BackToBrowsingButtonClicked
  • FavoriteButtonClicked
  • SuggestButtonClicked
  • RepickButtonClicked
  • OnShowAbilityTooltip
  • OnHideAbilityTooltip
  • OnShowPipTooltip
  • OnTurntableDrag
  • StopTurntableDrag
  • OnMouseWheel
  • OnSearchBoxHasFocus
  • OnSearchTextChanged
  • OnSearchEnterPress
  • ShowFullDeck
  • ToggleFullDeck
  • FullDeckCardWasDragged
  • FullDeckEditButtonClicked
  • FullDeckSaveButtonClicked
  • FullDeckCancelButtonClicked
  • FullDeckResetButtonClicked
  • FullDeckCopyToURLButtonClicked
  • OnExportLayout
  • UpdateImportList
  • OnFileListDeleteItemClicked
  • OnFileListLoadItemClicked
  • OnFullDeckCardRollOver
  • OnFullDeckCardClick
  • OnShowSuggestedHeroTooltip
  • OnShowTextTooltip
  • onHideTextTooltip
  • OnSuggestedHeroClick
  • OnClickPlayerListHero
  • OnChatSubmitted
  • OnMenuButtonPress
  • ItemSelectionCancel
  • ItemSelectionUnequip
  • SetHeroShowcaseClicked
  • OnChatLinkClicked
  • OnSuggestedItemClicked
  • OnSuggestedItemBackOrForwardButtonClicked
  • OnLanePickerPositionClicked

highlight_reel

  • OnFadeOutComplete

holdout

  • OnSlideOutFinished
  • OnRoundStartFadedOut

inventory

  • OnInventoryItemDraggedToSlot
  • OnInventoryItemDraggedToWorld
  • OnBeginDraggingInventoryItem
  • OnInventoryItemPressed
  • OnInventoryItemRightClick
  • OnRightClickMenuClosed
  • OnGrabAllStash
  • OnSellItem
  • OnShowItemInShop
  • OnDisassembleItem
  • OnDropItemFromStash
  • OnMouseOverShopButton
  • OnShopButtonPress
  • OnGlyphButtonPress
  • OnShowGlyphTooltip
  • OnHideGlyphTooltip
  • OnCourierButtonPress
  • OnCourierDeliverButtonPress
  • OnCourierHasteClick
  • OnCourierAbsentClick
  • OnShowCourierTooltip
  • OnHideCourierTooltip
  • OnShowCourierDeliveryTooltip
  • OnHideCourierDeliveryTooltip
  • OnStashButtonPress
  • OnAddQuickBuyItem
  • OnAddStickySlotItem
  • SetupInventoryItemTooltip
  • ShowInventoryItemTooltip
  • HideInventoryItemTooltip
  • SetupStashItemTooltip
  • ShowStashItemTooltip
  • HideStashItemTooltip
  • ShowQuickBuyItemTooltip
  • HideQuickBuyItemTooltip
  • OnQuickBuyButtonClick
  • OnClearQuickBuy
  • OnBeginDraggingQuickBuyItem
  • OnEndDraggingQuickBuyItem
  • OnShowActionItemTooltip
  • OnHideActionItemTooltip
  • OnActionItemClicked
  • OnHighlightElement

killcam

  • OnShowAbilityTooltip
  • OnHideAbilityTooltip
  • OnShowInventorySlotTooltip
  • OnHideInventorySlotTooltip
  • OnShopCardAbilityTooltip
  • OnShowPipTooltip
  • OnHidePipTooltip
  • OnInspectCloseClicked
  • OnKillcamExpanded
  • OnKillcamCollapsed
  • OnCardMouseDrag
  • OnShowItemPreviewTooltip
  • OnHideItemPreviewTooltip

last_hit_challenge

  • OnBeginGameButtonPress
  • SetEnableHelper

matchmaking_ready

  • AcceptLobby
  • DeclineLobby

overlay

  • UserMenu_Closed
  • UserMenu_Profile
  • UserMenu_SteamProfile
  • UserMenu_CommendPlayer
  • UserMenu_ReportPlayer
  • UserMenu_IgnorePlayer
  • UserMenu_UnignorePlayer
  • UserMenu_SellItem
  • UserMenu_ShowItemInShop
  • UserMenu_DisassembleItem
  • UserMenu_DropItemFromStash
  • UserMenu_ItemAlertAllies
  • UserMenu_InspectPlayer
  • UserMenu_SwapHero
  • OnShowPrizeTooltip
  • OnHidePrizeTooltip
  • ShowPickupItemTooltip
  • HidePickupItemTooltip
  • StatPopupInitialize
  • StatPopupAddString
  • StatPopupAddImage
  • StatPopupFinishAndSend
  • InitImagePicker
  • OnRemovedRoshanPopup
  • OnCancelGG

popups

  • FinishedExit
  • Button1Clicked
  • Button2Clicked

questlog

  • HideQuestLog

report_dialogue

  • SubmitReport
  • CancelButtonClicked

scoreboard

  • OnScoreboardButtonPress
  • OnMenuButtonPress
  • OnChatButtonPress
  • OnGuideButtonPress
  • OnSettingsButtonPress
  • OnTopbarPortraitClick
  • OnSpectateButtonPress
  • OnLogButtonPress
  • OnShareUnitsButtonPress
  • OnSpectatorItemsButtonPress
  • OnSpectatorHarvestButtonPress
  • OnSpectatorGoldButtonPress
  • OnSpectatorXPGraphButtonPress
  • OnSpectateDisconnectPress
  • OnMuteButtonClicked
  • PlayerNameClicked
  • OnShowDayNightTooltip
  • OnHideDayNightTooltip
  • OnSharedContentButtonPress
  • OnShowPennantTooltip
  • OnHidePennantTooltip
  • OnShowGuideTooltip

shared_content

  • OnContentRadioButtonSelect
  • OnCloseButtonClicked

shared_units

  • OnCloseButtonClicked
  • OnPlayerNameClicked
  • OnHeroCheckboxClicked
  • OnUnitsCheckboxClicked
  • OnDisableHelpCheckboxClicked

shop

  • OnShopOpened
  • OnShopCollapsed
  • OnPurchaseItem
  • OnPurchaseItemFromShop
  • OnUpgradeItem
  • OnSetQuickBuy
  • OnSetInventoryQuickBuy
  • OnShopTabActivated
  • OnSearchTextChanged
  • OnRequestItemPurchasableState
  • OnRecommendedItemsTabOpen
  • OnRecommendedItemsTabClose
  • OnStartShopItemDrag
  • OnEndShopItemDrag
  • OnSearchBoxGainFocus
  • OnSearchBoxLoseFocus
  • OnViewModeListClicked
  • OnViewModeGridClicked
  • ShowItemTooltip
  • HideItemTooltip
  • OnEditSuggestedItemClick
  • OnSuggestedItemSaveAsClick
  • OnSuggestedItemCloseSaveClick
  • OnItemDraggedToSuggested
  • OnItemBuildItemDragStart
  • HideDragPlaceholder
  • OnShowCategoryTooltip
  • OnHideCategoryTooltip

spectate_heroselection

  • OnChatSubmitted
  • OnShowAbilityTooltip
  • OnHideAbilityTooltip
  • OnSelectAbility
  • OnShowPipTooltip
  • OnShowBannedHeroTooltip
  • OnHideTextTooltip
  • OnResetPickBanLayout
  • OnHTMLMouseMoved
  • OnHTMLMouseDown
  • OnHTMLMouseUp
  • OnHTMLMouseWheel
  • OnHTMLKeyDown
  • OnHTMLScrollBarChanged
  • OnHTMLKeyUp
  • OnHTMLKeyTyped
  • OnHTMLFocusOut
  • OnHTMLFocusIn
  • OnHTMLVisible
  • SetHTMLBrowserSize
  • OnHTMLBackButtonClicked
  • OnHTMLForwardButtonClicked
  • OnHTMLStopButtonClicked
  • OnHTMLRefreshButtonClicked
  • OnHTMLStopButtonClicked
  • OnHTMLExternalBrowserButtonClicked

spectate

  • TogglePause
  • SetFOW
  • AdjustReplaySpeed
  • SetCameraView
  • SetBroadcasterCameraView
  • SetAudioChannel
  • CloseButtonClicked
  • SetAutoSpeed
  • CopyToClipboard
  • OnClickedScrubBar
  • OnPositiveVoteClicked
  • OnNegativeVoteClicked
  • SetChatEnabled
  • RewindPressed
  • UpdateTimeLabel

spectator_fantasy

  • ClosePanel

spectator_graph

  • UpdateGoldGraph
  • UpdateXPGraph
  • UpdateTeamGoldGraph
  • ClosePanel
  • OnGraphEventClicked

spectator_harvest

  • ClosePanel

spectator_items

  • ShowItemTooltip
  • HideItemTooltip
  • ClosePanel

stats_dropdown

  • SetCategory
  • OnSortButtonMouseDown
  • ShowRowTooltip
  • HideRowTooltip
  • MousePressedOnRow

survey

  • OnRatingRollOver
  • OnRatingClicked

ti_onstage_side

  • OnFinishedAnimatingTimedReward

tutorial

  • onCloseClicked
  • onExperienceClosed
  • OnFinishClicked
  • onQuestLogButtonClicked
  • ShowEconItemTooltip

Classes

For each one of these classes, there is a global singleton with the name same. (ex. globals.Players.CanPlayerBuyback)

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()


Game Interface

Function Signature Description
AddInputConsumer void AddInputConsumer()
RemoveInputConsumer void RemoveInputConsumer()
AddMouseInputConsumer void AddMouseInputConsumer()
RemoveMouseInputConsumer void RemoveMouseInputConsumer()
AddKeyInputConsumer void AddKeyInputConsumer()
RemoveKeyInputConsumer void RemoveKeyInputConsumer()
SetCursorShape void SetCursorShape( int )
ShowCursor void ShowCursor()
HideCursor void HideCursor()
LoadKVFile KVObject LoadKVFile( cstring, cstring, cstring )
SaveKVFile void SaveKVFile( KVObject, cstring, cstring, cstring )
SetConvar void SetConvar( cstring, cstring )
Translate cstring Translate( cstring )
ReplaceGlyphs cstring ReplaceGlyphs( cstring, int )
PlaySound int PlaySound( cstring )
PlaySoundAtPitch int PlaySoundAtPitch( cstring, double )
StopSound void StopSound( int )
DisableAnalogStickNavigation void DisableAnalogStickNavigation( bool )
GetAppID int GetAppID()