HWR Function Reference

Discussion Threads:
Functions: https://forums.gearboxsoftware.com/t/resource-hwr-functions-list-updated-02-14/1556232/1

Globals Dump: https://forums.gearboxsoftware.com/t/new-globals-dump/1539958/1

A

AddAbility

AddCustomCode

AddMagneticField

AddShield

AddShipMultiplier AddWeaponResult

B

bind1

bindup

C

Camera_AllowControl

Camera_AltFocus

Camera_AltFocusWithVolume

Camera_FocusOnFleet

Camera_FocusRestore

Camera_FocusSave

Camera_FocusSobGroup

Camera_FocusSobGroupWithBuffer

Camera_FocusVolume

Camera_FocusVolumeKeepingEyePosition

Camera_GetDistanceToSobGroup

Camera_GetLastZoomAmount

Camera_Interpolate

Camera_IsFocused

Camera_PlayerHasPanned

Camera_PlayerHasRotated

Camera_ResetPanned

Camera_ResetRotated

Camera_SetLetterboxState

Camera_SetLetterboxStateNoUI

Camera_UseCameraPoint

Camera_UsePanning

Camera_ZoomClose

D

dofilepath

E

EventPointer_Remove

F

FX_StartEvent

G

getRulesNum

getShipNum

K

KAS_AllowToPurchase

KAS_BuildControl

KAS_CampaignAutoSave

KAS_CPUPlayerInit

KAS_EnableTradeGUI

KAS_FillShipsByCapital

KAS_FillShipsByClass_Normal

KAS_FillShipsByClass_Normal

KAS_FindEnemiesInside

KAS_FocusDerelict

KAS_GameMessageReceived

KAS_HW1CPUDisableAllAIFeatures

KAS_HW1CPUEnableAIFeature

KAS_Launch

KAS_MessageSendToAll

KAS_MusicPlayType

KAS_MusicStop

KAS_PingAddPoint

KAS_PingRemove

KAS_PlayerMothership

KAS_RememberStartingRUs

KAS_ResetGameMessageQueue

KAS_SensorsToggle

KAS_SetColourScheme

KAS_SetColourSchemeColours

KAS_SetFormation

KAS_SetHidden

KAS_SetLetterboxStart

KAS_SetLetterboxState

KAS_SetTradeCost

KAS_SetTraderDisabled

KAS_SetTradeString

KAS_ShipsAdd

KAS_SubtitleAddOnce

KAS_TeamHyperspaceIn

KAS_TeamNamesEqual

KAS_UniversePause

KAS_UnrestrictResearchOption

KASObjective_Add

KASObjective_SetState

KASPointer_RemoveAll

KASRule_Add

KASRule_AddFSM

KASRule_Remove

KASRules_PauseExceptFSM

KASRules_UnpauseOthers

KASSobGroup_Create

KASSobGroup_CreateIfNotExist

KASTimer_IsExpiredIfSoDestroy

KASTimer_Start

M

MainUI_ActivateScreen

MainUI_ElementVisible

MainUI_FlashButton

MainUI_LoadScreen

MainUI_ShowElement

MainUI_UnloadScreen

P

Player_CancelResearch

Player_GetLevelOfDifficulty

Player_GetNumberOfSquadronsOfTypeAwakeOrSleeping

Player_GetShipsByFilterInclude

Player_HasQueuedResearch

Player_InstantDockAndParade

Player_InstantlyGatherAllResources

Player_RestrictAllResearch

Player_RestrictBuildOption

Player_SetPlayerName

Player_SetTeamColourTheme

Player_UnrestrictBuildOption

print

PlayerRace_DoesHaveTag

S

setConcurrentBuildLimit

setDefaultMusic

setBattleMusic

setEngineGlow

setSupplyValue

SpawnSalvageOnDeath

SobGroup_AbilityActivate

SobGroup_AddFilterExclude

SobGroup_AddFilterInclude

SobGroup_AllowPassiveActionsAlways

SobGroup_AreAllInHyperspace

SobGroup_AreAllInRealSpace

SobGroup_AreAnyFromTheseAttackFamilies

SobGroup_AreAnyOfTheseTypes

SobGroup_AreAnySquadronsOutsideDustCloud

SobGroup_AreAnySquadronsOutsideNebula

SobGroup_Attack

SobGroup_AttackPlayer

SobGroup_AttackSobGroupHardPoint

SobGroup_AvoidanceIgnore

SobGroup_CaptureSobGroup

SobGroup_ChangePower

SobGroup_Clear

SobGroup_ClearScriptFlag

SobGroup_ClearTumble

SobGroup_CloakToggle

SobGroup_Copy

SobGroup_Count

SobGroup_CountByFilterInclude

SobGroup_CountByScriptFlag

SobGroup_Create

SobGroup_CreateIfNotExist

SobGroup_CreateShip

SobGroup_CreateSubSystem

SobGroup_CreateSubSystemCheck

SobGroup_CustomCommand

SobGroup_CustomCommandTargets

SobGroup_DeployMinesInSphere

SobGroup_DeSelectAll

SobGroup_Despawn

SobGroup_DockSobGroup

SobGroup_DockSobGroup_NoLatch

SobGroup_DockSobGroupAndStayDocked

SobGroup_DockSobGroupInstant

SobGroup_Empty

SobGroup_EnterHyperSpaceOffMap

SobGroup_ExitHyperSpace

SobGroup_ExitHyperSpaceSobGroup

SobGroup_FillBattleScar

SobGroup_FillCompare

SobGroup_FillIntersect

SobGroup_FillProximityPoint

SobGroup_FillProximitySobGroup

SobGroup_FillShipsByFamily

SobGroup_FillShipsByIndexRange

SobGroup_FillShipsByType

SobGroup_FillSobGroupByHealthBelow

SobGroup_FillSobGroupInVolume

SobGroup_FillSubstract

SobGroup_FillUnion

SobGroup_FilterExclude

SobGroup_FollowPath

SobGroup_ForceStayDockedIfDocking

SobGroup_FormHyperspaceGate

SobGroup_FormSquadron

SobGroup_FormStrikeGroup

SobGroup_GetActualSpeed

SobGroup_GetAttackers

SobGroup_GetCentrePosition

SobGroup_GetCoordSys

SobGroup_GetDistanceToSobGroup

SobGroup_GetHardPointHealth

SobGroup_GetNextPathPoint

SobGroup_GetPlayerOwner

SobGroup_GetPosition

SobGroup_GetROE

SobGroup_GetShipType

SobGroup_GetSobGroupBeingCapturedGroup

SobGroup_GetSobGroupDockedWithGroup

SobGroup_GetSobGroupSalvagingGroup

SobGroup_GetStaticF

SobGroup_GroupInGroup

SobGroup_GuardSobGroup

SobGroup_HealthPercentage

SobGroup_HyperspaceTo

SobGroup_InactiveWhenCaptured

SobGroup_InStrikeGroup

SobGroup_IsBuilding

SobGroup_IsCloaked

SobGroup_IsDocked

SobGroup_IsDockedCompletely

SobGroup_IsDockedSobGroup

SobGroup_IsGateDeployed

SobGroup_IsInControlGroup

SobGroup_IsInVolume

SobGroup_IsShipNearPoint

SobGroup_Kamikaze

SobGroup_Launch

SobGroup_LaunchSelf

SobGroup_LoadPersistantData

SobGroup_MakeDead

SobGroup_MakeUntargeted

SobGroup_ManualEngineGlow

SobGroup_MinimumHealth

SobGroup_Move

SobGroup_MoveToPoint

SobGroup_MoveToSobGroup

SobGroup_OwnedBy

SobGroup_OwnedBy

SobGroup_ParadeSobGroup

SobGroup_PlayerIsInSensorRange

SobGroup_ReleaseSalCapSobGroup

SobGroup_RemoveType

SobGroup_RepairSobGroup

SobGroup_ResearchModuleExistOrSelected

SobGroup_ResetRenderedFlags

SobGroup_Resource

SobGroup_RestrictBuildOption

SobGroup_SalvagedByPlayer

SobGroup_Selected

SobGroup_SelectSobGroup

SobGroup_SetAsDeployed

SobGroup_SetAutoLaunch

SobGroup_SetAutoLaunch

SobGroup_SetBuildSpeedMultiplier

SobGroup_SetCaptureAlwaysDisables

SobGroup_SetCaptureState

SobGroup_SetDamageMultiplier

SobGroup_SetDisplayedRestrictedHardpoint

SobGroup_SetFixed

SobGroup_SetGhost

SobGroup_SetHardPointHealth

SobGroup_SetHealth

SobGroup_SetHidden

SobGroup_SetIgnoreWorldBounds

SobGroup_SetInherentVisibility

SobGroup_SetInRadiation

SobGroup_SetInvulnerability

SobGroup_SetInvulnerabilityOfHardPoint

SobGroup_SetMadState

SobGroup_SetMaxSpeed

SobGroup_SetMaxSpeedMultiplier

SobGroup_SetRetaliation

SobGroup_SetROE

SobGroup_SetScriptFlag

SobGroup_SetSpeed

SobGroup_SetStance

SobGroup_SetSwitchOwnerFlag

SobGroup_SetTeamColours

SobGroup_SetTeamColourTheme

SobGroup_SobGroupAdd

SobGroup_SpawnNewShipInSobGroup

SobGroup_SpawnToVector

SobGroup_SplitGroupFromGroup

SobGroup_Stop

SobGroup_SwitchOwner

SobGroup_TakeDamage

SobGroup_TakeDamageAbsolute

SobGroup_Tumble

SobGroup_UnderAttack

SobGroup_UnRestrictBuildOption

SobGroup_UpdateClass

Sound_EnableAllSpeech

Sound_EnterIntelEvent

Sound_SetMuteActor

Subtitle_IsDoneOrSkipped

Subtitle_Message

StartWeaponConfig

Subtitle_Message_Handlerw

U

UI_IsNamedElementVisible

UI_SetElementSize

Universe_AllowPlayerOrders

Universe_EnableSkip

Universe_Fade

V

Volume_AddSphere

SHIP

addAbility

addCustomCode

addMagneticField

addShield

AddShipMultiplier

getRulesNum

getShipNum

loadLatchPointList

LoadModel

loadShipPatchList

setConcurrentBuildLimit

setEngineBurn

setEngineGlow

setSupplyValue

setTacticsMults

setTargetBox

SpawnSalvageOnDeath

StartShipHardPointConfig

StartShipWeaponConfig

WEPN

addAnimTurretSound

AddWeaponResult

setAccuracy

setAccuracyFalloff

setAngles

setBallistics

setDamageFalloff

setFireMultFactor

setFrustratedTimers

setLifetimeMult

setMiscValues

setMissileKiller

setMissProperties

setPenetration

setRangeBoost

setRangeByStance

setSpeedvsAccuracyAgainst

StartWeaponConfig

MISS

LoadHODFile

loadShipPatchList

setEngineBurn

setEngineTrail

setTacticsMults

StartMissileConfig

LEVEL

addSquadron

setObjectAttributes

addAsteroid

addSphere

addPoint

createSOBGroup

addToSOBGroup

addCamera

addReactiveFleetSlot

setWorldBoundsInner

setWorldBoundsOuter

addPebble

fogSetActive

setGlareIntensity

setLevelShadowColour

loadBackground

setSensorsManagerCameraDistances

addDustCloudWithResources

SUBS

StartSubSystemWeaponConfig