Skip to content

Latest commit

 

History

History
416 lines (410 loc) · 34.8 KB

FUNCTIONS.md

File metadata and controls

416 lines (410 loc) · 34.8 KB

Some functions (such as operators) have transformations applied to them. If you cannot find the function here, then it is in the special functions page.

Normal functions

Workshop function OverPy function
Ability Icon String abilityIconString()
Abort return
Absolute Value abs()
All Damage Heroes getDamageHeroes()
All Dead Players getDeadPlayers()
All Heroes getAllHeroes()
All Living Players getLivingPlayers()
All Players getPlayers()
All Players Not On Objective getPlayersNotOnObjective()
All Players On Objective getPlayersOnObjective()
All Support Heroes getSupportHeroes()
All Tank Heroes getTankHeroes()
Angle Between Vectors angleBetweenVectors()
Angle Difference angleDifference()
Arccosine In Degrees acosDeg()
Arccosine In Radians acos()
Arcsine In Degrees asinDeg()
Arcsine In Radians asin()
Arctangent In Degrees atan2Deg()
Arctangent In Radians atan2()
Assist Count getNumberOfAssistIds()
Attacker attacker
Backward Vector.BACKWARD
Big Message bigMessage()
Break break
Closest Player To getClosestPlayer()
Continue continue
Control Mode Scoring Percentage getControlScorePercentage()
Control Mode Scoring Team getControlScoringTeam()
Cosine From Degrees cosDeg()
Cosine From Radians cos()
Count Of len()
Create Beam Effect createBeam()
Create Dummy Bot createDummy()
Create Effect createEffect()
Create Homing Projectile createHomingProjectile()
Create Icon createIcon()
Create In-World Text createInWorldText()
Create Progress Bar HUD Text progressBarHud()
Create Progress Bar In-World Text createProgressBarInWorldText()
Create Projectile createProjectile()
Create Projectile Effect createProjectileEffect()
Cross Product crossProduct()
Current Game Mode getCurrentGamemode()
Current Map getCurrentMap()
Custom Color rgba()
Damage damage()
Damage Modification Count getNumberOfDamageModificationIds()
Damage Over Time Count getNumberOfDoTIds()
Declare Match Draw declareDraw()
Declare Player Victory declarePlayerVictory()
Declare Round Draw declareRoundDraw()
Declare Round Victory declareRoundVictory()
Declare Team Victory declareTeamVictory()
Destroy All Dummy Bots destroyAllDummies()
Destroy All Effects destroyAllEffects()
Destroy All HUD Text destroyAllHudTexts()
Destroy All Icons destroyAllIcons()
Destroy All In-World Text destroyAllInWorldTexts()
Destroy All Progress Bar HUD Text destroyAllProgressBarHuds()
Destroy All Progress Bar In-World Text destroyAllProgressBarInWorldTexts()
Destroy Dummy Bot destroyDummy()
Destroy Effect destroyEffect()
Destroy HUD Text destroyHudText()
Destroy Icon destroyIcon()
Destroy In-World Text destroyInWorldText()
Destroy Progress Bar HUD Text destroyProgressBarHud()
Destroy Progress Bar In-World Text destroyProgressBarInWorldText()
Direction From Angles angleToDirection()
Direction Towards directionTowards()
Disable Built-In Game Mode Announcer disableAnnouncer()
Disable Built-In Game Mode Completion disableGamemodeCompletion()
Disable Built-In Game Mode Music disableMusic()
Disable Built-In Game Mode Scoring disableScoring()
Disable Inspector Recording disableInspector()
Distance Between distance()
Dot Product dotProduct()
Down Vector.DOWN
Enable Built-In Game Mode Announcer enableAnnouncer()
Enable Built-In Game Mode Completion enableGamemodeCompletion()
Enable Built-In Game Mode Music enableMusic()
Enable Built-In Game Mode Scoring enableScoring()
Enable Inspector Recording enableInspector()
Entity Count getNumberOfEntityIds()
Entity Exists entityExists()
Evaluate Once evalOnce()
Event Ability eventAbility
Event Damage eventDamage
Event Direction eventDirection
Event Healing eventHealing
Event Player eventPlayer
Event Was Critical Hit eventWasCriticalHit
Event Was Environment eventWasEnvironment
Event Was Health Pack eventWasHealthPack
False false
Farthest Player From getFarthestPlayer()
Flag Position getFlagPosition()
Forward Vector.FORWARD
Go To Assemble Heroes goToAssembleHeroes()
Heal heal()
Heal Over Time Count getNumberOfHoTIds()
Healee healee
Healer healer
Healing Modification Count getNumberOfHealingModificationIds()
Hero Icon String heroIcon()
Horizontal Angle From Direction horizontalAngleOfDirection()
Horizontal Angle Towards horizontalAngleTowards()
Host Player hostPlayer
Icon String iconString()
Input Binding String buttonString()
Is Assembling Heroes isAssemblingHeroes()
Is Between Rounds isMatchBetweenRounds()
Is Control Mode Point Locked isControlPointLocked()
Is CTF Mode In Sudden Death isInSuddenDeath()
Is Flag At Base isFlagAtBase()
Is Flag Being Carried isFlagBeingCarried()
Is Game In Progress isGameInProgress()
Is Hero Being Played teamHasHero()
Is In Line of Sight isInLoS()
Is In Setup isInSetup()
Is Match Complete isMatchComplete()
Is Objective Complete isObjectiveComplete()
Is Team On Defense isTeamOnDefense()
Is Team On Offense isTeamOnOffense()
Is Waiting For Players isWaitingForPlayers()
Kill kill()
Last Assist ID getLastAssistID()
Last Created Entity getLastCreatedEntity()
Last Created Health Pool getLastCreatedHealthPool()
Last Damage Modification ID getLastDamageModification()
Last Damage Over Time ID getLastDoT()
Last Heal Over Time ID getLastHoT()
Last Healing Modification ID getLastHealingModification()
Last Text ID getLastCreatedText()
Left Vector.LEFT
Local Player localPlayer
Local Vector Of localVector()
Log To Inspector printLog()
Magnitude Of magnitude()
Match Round getMatchRound()
Match Time getMatchTime()
Max max()
Min min()
Modify Team Score addToTeamScore()
Move Player to Team moveToTeam()
Nearest Walkable Position nearestWalkablePosition()
Normalize normalize()
Null null
Number Of Dead Players getNumberOfDeadPlayers()
Number Of Heroes getNumberOfHeroes()
Number Of Living Players getNumberOfLivingPlayers()
Number Of Players getNumberOfPlayers()
Number Of Players On Objective getNumberOfPlayersOnObjective()
Number Of Slots getNumberOfSlots()
Objective Index getCurrentObjective()
Objective Position getObjectivePosition()
Opposite Team Of getOppositeTeam()
Pause Match Time pauseMatchTime()
Payload Position getPayloadPosition()
Payload Progress Percentage getPayloadProgressPercentage()
Play Effect playEffect()
Player Carrying Flag getFlagCarrier()
Players In Slot getPlayersInSlot()
Players On Hero getPlayersOnHero()
Players Within Radius getPlayersInRadius()
Point Capture Percentage getCapturePercentage()
Random Integer random.randint()
Random Real random.uniform()
Random Value In Array random.choice()
Randomized Array random.shuffle()
Remove Health Pool From Player removeHealthPool()
Remove Player removeFromGame()
Restart Match restartMatch()
Return To Lobby returnToLobby()
Right Vector.RIGHT
Server Load getServerLoad()
Server Load Average getAverageServerLoad()
Server Load Peak getPeakServerLoad()
Set Match Time setMatchTime()
Set Objective Description setObjectiveDescription()
Set Slow Motion setSlowMotion()
Set Team Score setTeamScore()
Sine From Degrees sinDeg()
Sine From Radians sin()
Small Message smallMessage()
Spawn Points getSpawnPoints()
Square Root sqrt()
Start Damage Modification startDamageModification()
Start Forcing Spawn Room startForcingSpawn()
Start Game Mode startGamemode()
Start Healing Modification startHealingModification()
Stop All Assists stopAllAssists()
Stop All Damage Modifications stopAllDamageModifications()
Stop All Healing Modifications stopAllHealingModifications()
Stop Assist stopAssist()
Stop Damage Modification stopDamageModification()
Stop Damage Over Time stopDoT()
Stop Forcing Spawn Room stopForcingSpawn()
Stop Heal Over Time stopHoT()
Stop Healing Modification stopHealingModification()
String Contains strContains()
String Length strLen()
Tangent From Degrees tanDeg()
Tangent From Radians tan()
Team Score teamScore()
Text Count getNumberOfTextIds()
Total Time Elapsed getTotalTimeElapsed()
True true
Unpause Match Time unpauseMatchTime()
Up Vector.UP
Update Every Frame updateEveryTick()
Vector vect()
Vector Towards vectorTowards()
Vertical Angle From Direction verticalAngleOfDirection()
Vertical Angle Towards verticalAngleTowards()
Victim victim
Wait Until waitUntil()
World Vector Of worldVector()

Player functions

These functions take a player as first argument. The first argument is removed and put before the function.

Example: Teleport(Event Player, Vector(1,2,3)) is written as eventPlayer.teleport(vect(1,2,3)).

Workshop function OverPy function
Ability Charge <player>.getAbilityCharge()
Ability Cooldown <player>.getAbilityCooldown()
Ability Resource <player>.getAbilityResource()
Add Health Pool To Player <player>.addHealthPool()
Allow Button <player>.allowButton()
Allowed Heroes <player>.getAllowedHeroes()
Altitude Of <player>.getAltitude()
Ammo <player>.getAmmo()
Apply Impulse <player>.applyImpulse()
Attach Players <player>.attachTo()
Cancel Primary Action <player>.cancelPrimaryAction()
Clear Status <player>.clearStatusEffect()
Communicate <player>.communicate()
Detach Players <player>.detach()
Disable Built-In Game Mode Respawning <player>.disableRespawn()
Disable Death Spectate All Players <player>.disableDeathSpectateAllPlayers()
Disable Death Spectate Target HUD <player>.disableDeathSpectateTargetHud()
Disable Game Mode HUD <player>.disableGamemodeHud()
Disable Game Mode In-World UI <player>.disableGamemodeInWorldUi()
Disable Hero HUD <player>.disableHeroHud()
Disable Kill Feed <player>.disableKillFeed()
Disable Messages <player>.disableMessages()
Disable Movement Collision With Environment <player>.disableEnvironmentCollision()
Disable Movement Collision With Players <player>.disablePlayerCollision()
Disable Nameplates <player>.disableNameplatesFor()
Disable Scoreboard <player>.disableScoreboard()
Disable Text Chat <player>.disableTextChat()
Disable Voice Chat <player>.disableVoiceChat()
Disallow Button <player>.disallowButton()
Enable Built-In Game Mode Respawning <player>.enableRespawn()
Enable Death Spectate All Players <player>.enableDeathSpectateAllPlayers()
Enable Death Spectate Target HUD <player>.enableDeathSpectateTargetHud()
Enable Game Mode HUD <player>.enableGamemodeHud()
Enable Game Mode In-World UI <player>.enableGamemodeInWorldUi()
Enable Hero HUD <player>.enableHeroHud()
Enable Kill Feed <player>.enableKillFeed()
Enable Messages <player>.enableMessages()
Enable Movement Collision With Environment <player>.enableEnvironmentCollision()
Enable Movement Collision With Players <player>.enablePlayerCollision()
Enable Nameplates <player>.enableNameplatesFor()
Enable Scoreboard <player>.enableScoreboard()
Enable Text Chat <player>.enableTextChat()
Enable Voice Chat <player>.enableVoiceChat()
Eye Position <player>.getEyePosition()
Facing Direction Of <player>.getFacingDirection()
Has Spawned <player>.hasSpawned()
Has Status <player>.hasStatusEffect()
Health <player>.getHealth()
Health Of Type <player>.getHealthOfType()
Hero Being Duplicated <player>.getHeroOfDuplication()
Hero Of <player>.getCurrentHero()
Horizontal Facing Angle Of <player>.getHorizontalFacingAngle()
Horizontal Speed Of <player>.getHorizontalSpeed()
Is Alive <player>.isAlive()
Is Button Held <player>.isHoldingButton()
Is Communicating <player>.isCommunicating()
Is Communicating Any <player>.isCommunicatingAnything()
Is Communicating Any Emote <player>.isCommunicatingEmote()
Is Communicating Any Spray <player>.isCommunicatingSpray()
Is Communicating Any Voice line <player>.isCommunicatingVoiceline()
Is Crouching <player>.isCrouching()
Is Dead <player>.isDead()
Is Dummy Bot <player>.isDummy()
Is Duplicating <player>.isDuplicatingAHero()
Is Firing Primary <player>.isFiringPrimaryFire()
Is Firing Secondary <player>.isFiringSecondaryFire()
Is In Air <player>.isInAir()
Is In Alternate Form <player>.isInAlternateForm()
Is In Spawn Room <player>.isInSpawnRoom()
Is In View Angle <player>.isInViewAngle()
Is Jumping <player>.isJumping()
Is Meleeing <player>.isMeleeing()
Is Moving <player>.isMoving()
Is On Ground <player>.isOnGround()
Is On Objective <player>.isOnObjective()
Is On Wall <player>.isOnWall()
Is Portrait On Fire <player>.isOnFire()
Is Reloading <player>.isReloading()
Is Standing <player>.isStanding()
Is Using Ability 1 <player>.isUsingAbility1()
Is Using Ability 2 <player>.isUsingAbility2()
Is Using Ultimate <player>.isUsingUltimate()
Max Ammo <player>.getMaxAmmo()
Max Health <player>.getMaxHealth()
Max Health Of Type <player>.getMaxHealthOfType()
Modify Player Score <player>.addToScore()
Normalized Health <player>.getNormalizedHealth()
Number Of Deaths <player>.getNumberOfDeaths()
Number Of Eliminations <player>.getNumberOfElims()
Number Of Final Blows <player>.getNumberOfFinalBlows()
Player Closest To Reticle <player>.getPlayerClosestToReticle()
Player Hero Stat <player>.getHeroStatistic()
Player Stat <player>.getStatistic()
Players in View Angle <player>.getPlayersInViewAngle()
Position Of <player>.getPosition()
Preload Hero <player>.preloadHero()
Press Button <player>.forceButtonPress()
Remove All Health Pools From Player <player>.removeAllHealthPools()
Reset Player Hero Availability <player>.resetHeroAvailability()
Respawn <player>.respawn()
Resurrect <player>.resurrect()
Score Of <player>.getScore()
Set Ability 1 Enabled <player>.setAbility1Enabled()
Set Ability 2 Enabled <player>.setAbility2Enabled()
Set Ability Charge <player>.setAbilityCharge()
Set Ability Cooldown <player>.setAbilityCooldown()
Set Ability Resource <player>.setAbilityResource()
Set Aim Speed <player>.setAimSpeed()
Set Ammo <player>.setAmmo()
Set Crouch Enabled <player>.setCrouchEnabled()
Set Damage Dealt <player>.setDamageDealt()
Set Damage Received <player>.setDamageReceived()
Set Environment Credit Player <player>.setEnvironmentalKillCreditor()
Set Facing <player>.setFacing()
Set Gravity <player>.setGravity()
Set Healing Dealt <player>.setHealingDealt()
Set Healing Received <player>.setHealingReceived()
Set Invisible <player>.setInvisibility()
Set Jump Enabled <player>.setJumpEnabled()
Set Jump Vertical Speed <player>.setJumpVerticalSpeed()
Set Knockback Dealt <player>.setKnockbackDealt()
Set Knockback Received <player>.setKnockbackReceived()
Set Max Ammo <player>.setMaxAmmo()
Set Max Health <player>.setMaxHealth()
Set Melee Enabled <player>.setMeleeEnabled()
Set Move Speed <player>.setMoveSpeed()
Set Player Allowed Heroes <player>.setAllowedHeroes()
Set Player Health <player>.setHealth()
Set Player Score <player>.setScore()
Set Primary Fire Enabled <player>.setPrimaryFireEnabled()
Set Projectile Gravity <player>.setProjectileGravity()
Set Projectile Speed <player>.setProjectileSpeed()
Set Reload Enabled <player>.setReloadEnabled()
Set Respawn Max Time <player>.setRespawnTime()
Set Secondary Fire Enabled <player>.setSecondaryFireEnabled()
Set Status <player>.setStatusEffect()
Set Ultimate Ability Enabled <player>.setUltEnabled()
Set Ultimate Charge <player>.setUltCharge()
Set Weapon <player>.setWeapon()
Slot Of <player>.getSlot()
Speed Of <player>.getSpeed()
Speed Of In Direction <player>.getSpeedInDirection()
Start Accelerating <player>.startAcceleration()
Start Assist <player>.startGrantingAssistFor()
Start Camera <player>.startCamera()
Start Damage Over Time <player>.startDoT()
Start Facing <player>.startFacing()
Start Forcing Dummy Bot Name <player>.startForcingName()
Start Forcing Player Outlines <player>.startForcingOutlineFor()
Start Forcing Player Position <player>.startForcingPosition()
Start Forcing Player To Be Hero <player>.startForcingHero()
Start Forcing Throttle <player>.startForcingThrottle()
Start Heal Over Time <player>.startHoT()
Start Holding Button <player>.startForcingButton()
Start Modifying Hero Voice Lines <player>.startModifyingVoicelinePitch()
Start Scaling Barriers <player>.startScalingBarriers()
Start Scaling Player <player>.startScalingSize()
Start Throttle In Direction <player>.startThrottleInDirection()
Start Transforming Throttle <player>.startTransformingThrottle()
Stop Accelerating <player>.stopAcceleration()
Stop All Damage Over Time <player>.stopAllDoT()
Stop All Heal Over Time <player>.stopAllHoT()
Stop Camera <player>.stopCamera()
Stop Facing <player>.stopFacing()
Stop Forcing Dummy Bot Name <player>.stopForcingName()
Stop Forcing Player Outlines <player>.stopForcingOutlineFor()
Stop Forcing Player Position <player>.stopForcingPosition()
Stop Forcing Player To Be Hero <player>.stopForcingCurrentHero()
Stop Forcing Throttle <player>.stopForcingThrottle()
Stop Holding Button <player>.stopForcingButton()
Stop Modifying Hero Voice Lines <player>.stopModifyingVoicelinePitch()
Stop Scaling Barriers <player>.stopScalingBarriers()
Stop Scaling Player <player>.stopScalingSize()
Stop Throttle In Direction <player>.stopThrottleInDirection()
Stop Transforming Throttle <player>.stopTransformingThrottle()
Team Of <player>.getTeam()
Teleport <player>.teleport()
Throttle Of <player>.getThrottle()
Ultimate Charge Percent <player>.getUltCharge()
Velocity Of <player>.getVelocity()
Vertical Facing Angle Of <player>.getVerticalFacingAngle()
Vertical Speed Of <player>.getVerticalSpeed()
Weapon <player>.getCurrentWeapon()