parent
d59eaaa385
commit
96fe0484f8
@ -0,0 +1,5 @@
|
||||
REM Available to any processor, using the `control` instruction
|
||||
reactor1.enabled = false
|
||||
|
||||
REM Only available to world processors, using the `setprop` instruction
|
||||
@unit.health = @unit.health / 2
|
@ -0,0 +1,9 @@
|
||||
set main__tmp_0 reactor1
|
||||
set main__tmp_1 false
|
||||
control enabled main__tmp_0 main__tmp_1
|
||||
set main__tmp_2 @unit
|
||||
set main__tmp_6 @unit
|
||||
sensor main__tmp_4 main__tmp_6 @health
|
||||
set main__tmp_5 2
|
||||
op div main__tmp_3 main__tmp_4 main__tmp_5
|
||||
setprop @health main__tmp_2 main__tmp_3
|
@ -0,0 +1,6 @@
|
||||
control enabled reactor1 false
|
||||
set main__tmp_2 @unit
|
||||
set main__tmp_6 @unit
|
||||
sensor main__tmp_4 main__tmp_6 @health
|
||||
op div main__tmp_3 main__tmp_4 2
|
||||
setprop @health main__tmp_2 main__tmp_3
|
Loading…
Reference in new issue