Mindustry

Mindustry

评价数不足
Sooting Synchronizer
   
奖励
收藏
已收藏
取消收藏
标签: schematic
文件大小
发表于
369.000 B
2024 年 5 月 23 日 下午 1:40
1 项改动说明 ( 查看 )

订阅以下载
Sooting Synchronizer

描述
Just build, and connect to any turrets. Fast enougth for 5-6 links, for more speed just copy to any better processors.
Synchronizes the shooting of turrets, if one of them is controlled by the player. nothing spetial
___Code___

set LinkIter 0
ClearPlayer:
set Player null
Start:
getlink Turret LinkIter
control shootp Turret 0 0 0 0

op add LinkIter LinkIter 1
jump noClear lessThan LinkIter @links
set LinkIter 0
noClear:

sensor isPlayer Turret @controlled
jump isNoPlayer notEqual isPlayer @ctrlPlayer
set Player Turret
sensor psx Turret @shootX
sensor psy Turret @shootY
jump Start always
isNoPlayer:

sensor isControlled Player @controlled
jump ClearPlayer notEqual isControlled @ctrlPlayer
sensor isPlayerShoot Player @shooting
control shoot Turret psx psy isPlayerShoot 0

jump Start always