This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| prpl:setshipenergy [2016/12/02 23:34] – external edit 127.0.0.1 | prpl:setshipenergy [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| <- [[.: | <- [[.: | ||
| - | ===== | + | ===== |
| ^Arguments^Result^Notation^ | ^Arguments^Result^Notation^ | ||
| - | | | | [ - ] | | + | | Ship Energy |
| === Description === | === 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 === | === Examples === | ||
| - | < | + | < |
| + | #Destroy energy reserves of any ship which allows to bridge to come too close. | ||
| + | CurrentCoords 10 0 GetAllShipsInRange -> | ||
| + | <-Ships GetListCount 0 do | ||
| + | < | ||
| + | <-SID 0 SetShipEnergy | ||
| + | loop | ||
| + | </ | ||