Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ bin/
obj/
/packages/
riderModule.iml
/_ReSharper.Caches/
/_ReSharper.Caches/
/.vs
13 changes: 7 additions & 6 deletions Data/Scripts/SeMoreEvents/Components/Events/WeatherEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,15 +157,16 @@ private void CheckWeather()

var currentWeatherId = GetCurrentWeatherId();

if (_selectedWeatherId != currentWeatherId)
if (_selectedWeatherId == currentWeatherId)
{
if (_prevWeatherId == _selectedWeatherId)
Block.TriggerAction(0);
Block.TriggerAction(0);
return;
}

if (_prevWeatherId != currentWeatherId)
else
{
Block.TriggerAction(1);
return;
}
_prevWeatherId = currentWeatherId;
}

Expand Down Expand Up @@ -204,4 +205,4 @@ public void UpdateDetailedInfo(StringBuilder info, int slot, long entityId, floa
info.AppendFormat(MySpaceTexts.EventOutputInfo, slot);
}
}
}
}
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Purpose
This mod for Space Engineers Beta introduces new event types for the Event Controller block. Now you can trigger different events based on thruster power, natural gravity, and more! With this mod, you'll be able to create more complex and interesting space scenarios. Check it out and make your space scenes even more immersive.

## Event Types
| Name | Value |
| ------------ | ------------ |
| Current Weather | Type |
| Projection Built | % |
| Other Event Controller Triggered | none |

## Contributing

**Suggestions**
You can always suggest your own ideas for the new event types in comments down below!

**Crowdfunding**
We're looking for translations on our [Crowdin](https://crowdin.com/project/se-more-events)

**Developers**
Mod source code is available on [Github](https://github.com/zznty/SeMoreEvents)