Function; getShipNum - HWRM/KarosGraveyard GitHub Wiki

Description

Retrieves a numeric value for a ship from its associated file in the props folder. Used to assign different values for a ship's properties for the play environment it's loaded in (singleplayer vs multiplayer).

Example

getShipNum(NewShipType, "maxhealth", 280000)

Arguments

  1. <rShipTable>: Reference to the ship; probably NewShipType.
  2. <sString>: The name of the property on the ship to override, if an override exists.
  3. <fFloat>: Default value to use if there's no override present.

Scope

Related Pages

Comments

Page Status

Updated Formatting? Yes
Updated for HWRM? Initial

⚠️ **GitHub.com Fallback** ⚠️