HPL3/SOMA/Scripting/Scripting Api/EnergySource

From Frictional Wiki
< HPL3‎ | SOMA‎ | Scripting‎ | Scripting Api
Revision as of 21:52, 24 August 2020 by Abion47 (talk | contribs) (Created page with "{{ScriptingStub}} Have some helpful descriptions to add to this class? Edit this page and add your insight to the Wiki! ==Summary== {{CodeDocSummaryTop}} {{CodeDocSummaryIte...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Have some helpful descriptions to add to this class? Edit this page and add your insight to the Wiki!

Summary

Return Type Function and Description
void EnergySource_SetEnergy(const tString &in asName, float afX)
Sets the energy level of an energy source

Function Detail

EnergySource_SetEnergy

void EnergySource_SetEnergy(const tString &in asName,
                            float afX)

Sets the energy level of an energy source

Parameters

  • asName (tString) — the name of the energy source.
  • afX (float) — the energy amount

Returns:

  • void