| Method | Description |
|---|---|
getStress() | Gets the current stress level |
getStressCapacity() | Gets the total stress capacity |
| Event | Description |
|---|---|
overstressed | Triggers when overstressed |
stress_change | Triggers when stress changes |
getStress()
Gets the connected network's current stress level.
Returns
numberThe current stress level in SU.
getStressCapacity()
Gets the connected network's total stress capacity.
Returns
numberThe total stress capacity in SU.
Events
The following are events that can be accessed with os.pullEvent(filter).
Event: overstressed
Triggers whenever the network becomes overstressed.
Event: stress_change
Triggers whenever the network's stress changes.
Returns
numberThe total stress level in SU.numberThe total stress capacity in SU.