User Tools

Site Tools


prpl:setshipenergy

<- PRPL reference <- Everything Else 2

SetShipEnergy

ArgumentsResultNotation
Ship Energy [ int float - ]

Description

Set the internal energy reserve of a ship. This will later be clipped to the maximum energy allowed by the number of tanks present if required. Minimum of 0.

Examples

#Destroy energy reserves of any ship which allows to bridge to come  too close.
CurrentCoords 10 0 GetAllShipsInRange ->Ships
<-Ships GetListCount 0 do
    <-Ships[I] ->SID
    <-SID 0 SetShipEnergy
loop
prpl/setshipenergy.txt · Last modified: 2017/06/28 23:57 by GoodMorning