User Tools

Site Tools


4rpl:commands:setuniternsimulated

This is an old revision of the document!


Index

:!: Available in version 1.3 and later.

SetUnitERNSimulated

SetUnitERNSimulated(<-unit <-state)

Description

State
controls the ERN override. 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. 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. (Found in v2.3.3) 1)

Examples

SetUnitERNSimulated(self 1)

Index

1)
Track this GitHub issue to see if/when this is resolved and the note can be removed [4RPL] SetUnitERNSimulated does not interact with Pylons #1041
4rpl/commands/setuniternsimulated.1652801187.txt.gz · Last modified: 2025/02/14 14:56 (external edit)