User Tools

Site Tools


4rpl:commands:getuniternsimulated

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
4rpl:commands:getuniternsimulated [2021/01/31 19:00] – created virgilw4rpl:commands:getuniternsimulated [2025/02/14 14:57] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ~~NOTOC~~ ~~NOTOC~~
 <=[[4rpl:start| Index]] <=[[4rpl:start| Index]]
 +<WRAP tabs> 
 +  * [[4rpl:commands:getuniternsimulated|Get]] 
 +  * [[4rpl:commands:setuniternsimulated|Set]] 
 +</WRAP>
 :!: Available in version 1.3 and later. :!: Available in version 1.3 and later.
 ====== GetUnitERNSimulated ====== ====== GetUnitERNSimulated ======
Line 8: Line 11:
 ===== Description ===== ===== Description =====
 Gets the ERN simulated state for the unit. Gets the ERN simulated state for the unit.
-If state is 1, then the unit will act as if it has an ERN. If state is -1, then unit will act as if it does not have an ERN, even it is actually does. If state is 0, then there is no override to either ERN state. + 
 +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 [[4rpl:commands:getuniternstate|GetUnitERNState]] for this situation.
 ===== Examples ===== ===== Examples =====
 <code 4rpl> <code 4rpl>
4rpl/commands/getuniternsimulated.1612119646.txt.gz · Last modified: 2025/02/14 14:56 (external edit)