Skip to content

Instantly share code, notes, and snippets.

@Novaras
Created February 15, 2022 20:25
Show Gist options
  • Save Novaras/a165662c7d36fbe4cd2ef0f17f48bd39 to your computer and use it in GitHub Desktop.
Save Novaras/a165662c7d36fbe4cd2ef0f17f48bd39 to your computer and use it in GitHub Desktop.
Player globals

The following is a list of all the globally available Player_ functions during runtime (i.e customCode or mission scripts) Most of these are documented over on Karos (you can use the 'Pages' dropdown on the right to navigate quickly).

You can see the global scope for yourself by invoking the global function globals:

globals(); -- outputs all globals

-- print the contents to HomeworldRM/Bin/Release/HwRM.log
-- (not recursive for subtables)
for k, v in globals() do
  print(k .. ":\t" .. v);
end

This list is a filtration against this larger table.

Player_SetGlobalROE
Player_RestrictAllResearch
Player_RestrictBuildOption
Player_CancelResearch
Player_AllowDockFromUIOverride
Player_IsAlive
Player_UnpauseBuildQueues
Player_UnrestrictResearchOption
Player_HasResearchPrequisitesToBuild
Player_Research
Player_SetResearchCost
Player_GetLevelOfDifficulty
Player_ResearchOptionIsRestricted
Player_ResearchOptionIsComplete
Player_PauseBuildQueues
Player_NumberOfAwakeShips
Player_GetNumberOfSquadronsOfTypeAwakeOrSleeping
Player_BuildOptionIsRestricted
Player_HasQueuedBuild
Player_FillShipsByType
Player_CanResearch
Player_HasShipWithBuildQueue
Player_AddLocalChatMessage
Player_GetLocalPlayerID
Player_RestrictResearchOption
Player_GetShipsByFilterExclude
Player_SetRU
Player_GetShipsByFilterInclude
Player_GetName
Player_GetResearchCost
Player_IsShipInVolume
Player_UnrestrictBuildOption
Player_GatheredRUs
Player_ShareVision
Player_IsResearching
Player_HasQueuedResearch
Player_SetGlobalStance
Player_GetShipsByType
Player_GetRU
Player_FillSobGroupInVolume
Player_GrantResearchOption
Player_SetTeamColourTheme
Player_HasSubsystem
Player_SetBadgeTexture
Player_GetRace
Player_InstantlyGatherAllResourcesAllTypes
Player_SetPlayerName
Player_InstantDockAndParade
Player_Kill
Player_SetBounty
Player_SetTeamColours
Player_GrantAllResearch
Player_HasResearch
Player_InstantlyGatherAllResources
Player_FillProximitySobGroup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment