~~NOTOC~~ <=[[4rpl:start| Index]] ====== GetUnitERNState ====== GetUnitERNState(<-unit) ->hasERN ===== Description ===== Returns whether or not the unit has an ERN installed. **Note:** Do not get mixed up with the API [[4rpl:commands:getuniternsimulated|GetUnitERNSimulated]]. They are completely separate and when an ERN is docked, this API will return true while [[4rpl:commands:getuniternsimulated|GetUnitERNSimulated]] will not based on the ERN being docked alone. ===== Examples ===== traceAllSP(GetUnitERNState(self)) <=[[4rpl:start| Index]]