User Tools

Site Tools


4rpl:commands:setuniternsimulated

Differences

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

Link to this comparison view

Next revision
Previous revision
4rpl:commands:setuniternsimulated [2021/01/29 23:49] – created virgilw4rpl:commands:setuniternsimulated [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.
 ====== SetUnitERNSimulated====== ====== SetUnitERNSimulated======
-SetUnitERNSimulated(<-unit <-hasSimulatedERN)+SetUnitERNSimulated(<-unit <-state)
  
 ===== Description ===== ===== Description =====
-Sets if the unit has a simulated ERN. A simulated ERN makes the unit think it has an ERN for purposes of upgradesA simulated ERN does not affect the visual state of the unit or interfere with the unit holding or releasing an actual ERN.+  ? State  
 +  : controls the ERN overrideIf 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. Note that the visual state of the unit is not affected by this call, only the effects of an ERN are altered.
  
 +:NOTE:\\
 +Pylons are an exception to this. This API will not change the connection range of a Pylon although traditional ERNs will. It will be completely unaffected. 
 ===== Examples ===== ===== Examples =====
 <code 4rpl> <code 4rpl>
-SetUnitERNSimulated(self true)+SetUnitERNSimulated(self 1)
 </code> </code>
  
 <=[[4rpl:start| Index]] <=[[4rpl:start| Index]]
4rpl/commands/setuniternsimulated.1611964194.txt.gz · Last modified: 2025/02/14 14:56 (external edit)