Spearhead API
NOTE: The Spearhead.API space is only released in the Beta branch at the moment.
Introduction
The Spearhead.API space is specifically created to make sure mission makers can interact with the framework.
Simply alter logic, get the current state in Spearhead, and give the whole Mission Editor more control.
For example, late activate the entire framework by calling Spearhead.API.Stages.changeStage(1) later or on demand and setting the starting config stage to -1 in the Spearhead configuration file.
Stages
---Changes the active stage of spearhead. --- All other stages will change based on the normal logic. (CAP, BLUE etc.) ---@param stageNumber number the stage number you want changed ---@return boolean success indicator of success ---@return string message error message Spearhead.API.Stages.changeStage = function(stageNumber) end ---Returns the current stange number ---Returns nil when the stagenumber was not set and spearhead is not started. ---@return number | nil Spearhead.API.Stages.getCurrentStage = function() end ---returns whether a stage (by index) is complete. ---@param stageNumber number ---@return boolean | nil ---@return string Spearhead.API.Stages.isStageComplete = function(stageNumber) end