Index

:!: Available in version 1.3 and later.

GetUnitERNSimulated

GetUnitERNSimulated(<-unit) ->state

Description

Gets the ERN simulated state for the unit.

If state is

1,
then the unit will act as if it has an ERN.
-1,
then unit will act as if it does not have an ERN, even it is actually does.
0,

then there is no override to either ERN state.

:WARNING: This is specifically ERN Simulation. Not actual ERN state. When a ERN is docked to a unit, this API will not return 1. Refer to GetUnitERNState for this situation.

Examples

GetUnitERNSimulated(self) ->state

Index