Scrap Mechanic

Scrap Mechanic

391 个评价
Electromagnets
4
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
1.774 MB
2018 年 5 月 25 日 下午 5:33
2022 年 5 月 4 日 下午 2:10
12 项改动说明 ( 查看 )

订阅以下载
Electromagnets

描述
This mod adds an electromagnet.
When powered, it attracts other powered electromagnets. It's strength increases exponentially when the distance to the other electromagnet decreases.

If you have problems with magnets shooting in all directions, try to add more weight to them!

UPDATE 1:
  • The strength of an electromagnet can now be changed by powering it using an engine.
    This makes it easier to attract objects with a lower mass.

  • Added a polarity.
    The magnets now has 3 modes, which you can cycle through by pressing [E].
    - The mode with the magnet symbol attracts all other electromagnets.
    - The north mode with the 'N' symbol attracts all other electromagnets with a 'S' symbol, and repels all other electromagnets with a 'N' symbol.
    - The south mode with the 'S' symbol attracts all other electromagnets with a 'N' symbol, and repels all other electromagnets with a 'S' symbol.

  • Updated the icon to match the part.

UPDATE 2:
  • The visuals should now work for multiplayer. (Although I haven't tested this)

UPDATE 3:
  • Changed the physicsMaterial to reduce particles. (Thanks to kAN Gaming for showing me this)
  • When a magnet is connected to a Driver's Seat, it is powered when you enter the seat.
  • Updated the script to now work with Build 374. (7th July, 2018)

UPDATE 4:
  • Updated the script to now work with 0.4.0 (backwards compatible with at least 0.3.5)
  • Did some optimisations.

UPDATE 5:
  • Added support for survival mode engines

TODO:
  • Add engine sounds when the electromagnets are powered by engines.
  • Output some signal (I don't know what yet) to make it easier to let things hover.
  • Reduce collision sounds.
  • Update the icon to match the part.
  • Add a polarity. (I am not able to save the polarity at the moment)
  • Allow an engine to power the electromagnets.

Thanks to DasEtwas for letting me use his vector math code in the first version
热门讨论 查看全部(1)
19
2021 年 7 月 7 日 上午 9:48
Mod ideas (NOT OFFICIAL)
Gibbs
330 条留言
AnreeNeo 2024 年 4 月 15 日 上午 7:40 
TechnologicNick, hi, can you make it so that you can change the power of an electromagnet, like in a motor, and change the power using buttons or logic painted in a certain color?
TechnologicNick  [作者] 2024 年 3 月 25 日 下午 12:29 
That used to be very slow years ago, I haven't looked into it since.
potatogoa 2024 年 3 月 24 日 上午 9:24 
Can you make electromagnets attract metal?
TechnologicNick  [作者] 2024 年 2 月 3 日 下午 1:46 
Scripted parts work as a multiplier of the strength. Logic input is a logic gate, switch, button, anything with an on or an off state.
Red_Claws 2024 年 2 月 2 日 上午 9:50 
Can I use something else other then a engine, I recall it saying in the description in scrap mechanic "controlled by a engine or logic input" what kind of logic input
TechnologicNick  [作者] 2024 年 2 月 1 日 上午 8:56 
Read the description
Red_Claws 2024 年 2 月 1 日 上午 12:53 
how do you change the strength?
TechnologicNick  [作者] 2024 年 1 月 4 日 下午 6:00 
¯\_(ツ)_/¯
BraveCaperCat 2024 年 1 月 4 日 上午 3:34 
my friend's game crashes if this mod is installed.
AnreeNeo 2023 年 10 月 18 日 上午 7:51 
some modders use colors in survival