HPL3/SOMA/Scripting/Scripting Api/EnergySource

From Frictional Wiki
< HPL3‎ | SOMA‎ | Scripting‎ | Scripting Api
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