Space Engineers

Space Engineers

Not enough ratings
Apply Actions To Groups Remotely
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
400.781 KB
5 Jun, 2018 @ 2:01pm
18 Jun, 2023 @ 12:42pm
2 Change Notes ( view )

Subscribe to download
Apply Actions To Groups Remotely

Description
Updated 18-06-2023
* Fixed compatibility with modern version of SE
* Added the ability to target blocks directly, instead of group,
* Added the ability to target specific grids (see section below)

This script allows you to remotely execute any action on any group. This is very usefull for like opening hangar doors from a ship.

To use this:

On your ship/staion you want to control
-Place Antenna
-Place Programmable Block.
-Upload this script to the programmable block

On your ship/station you want to control from
-Place Antenna
-Place Programmable Block
-Upload the program of https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2991353048 to this programmable block.

That was the "Hard" setup. To use all the functions go into your ship/station you want to control from.
-Open the Actions menu(From a cockpit that is G)
-Use the action "Run" from your programmable block

A pop up will appear for a argument. This is where the nice part comes in.
You have to enter <Action Name>#<Group Name/Block name> to make it work.
In my ship I have a group called "All Hangar Doors" and i want to apply the actions Toggle open/closed to it.
The Toggle open/closed action for doors is "Open" which you can find here: http://www.spaceengineerswiki.com/Programming_Guide/Action_List
So to make my remote function toggle doors i have to enter "Open#All Hangar Doors" in the popup box.

And i am done! if i now press the button associated with this run command my door will open!

If your door or somethting else doesn't work. Don't worry. you probably typed something wrong. Capatilizations is really important. so it's "Open" not "open". Also check the name of your groups. they can't be wrong either.
If everything stopped working. also don't worry. just click Recomile in the programmable block of the stations you want to control.

If something else doesn't work. Check the programmable block in the station you want to control. it will probably display a "Usefull" error message.

If you have any questions. feel free to ask!

>> Using multiple grids
When you have multiple stations/grids that need to work with this system, you can target specific grids in the command.
Use <action>#<groupname/blockname>#<gridname> to target a specific grid, like "Base1", "Base2" or any name that you want to give it.

In the programmable block of the receiver you need to add the line "grid=<gridname>" (withouth qoures) to the Custom data field. something like "grid=Base1" (without quotes). This will make sure the command is only executed when when the grid names match.
If you have setup a grid name in the custom data, and don't specifiy it in the command, nothing will happen.
When you specify a grid in the command but you don't specify it in the custom data, nothing will happen, be aware of this.

5 Comments
🍁BuzzedBear🍁 18 Feb, 2020 @ 3:08pm 
WOOOHOOOOO!!!!! Thanks Oedze. I'll be keeping my eyes open for it!
oedze  [author] 18 Feb, 2020 @ 4:51am 
I haven't played for a while. I can try to fix it. But it will take a while.
🍁BuzzedBear🍁 14 Nov, 2019 @ 12:15pm 
Any chance of an update on this? Sounds incredibly like what I need!
OCD Insomniac 26 Sep, 2019 @ 6:41pm 
Was excited to try this script out when I found it. This would help a ton when controlling multiple ships in a mini fleet. Lightweight and easy. I installed it as stated, but once I add the code to the commanding ship, I get an error stating that the IMyRadioAntenna string is depreciated and to use IMyIntergridCommunicationSystem instead. I know nothing about coding in C#, otherwise, I'd correct it myself..but alas, I'm a dunce in that regard. Please update this most useful script! Thanks for sharing your work!
☣SanderSkills☣ 7 Jun, 2018 @ 9:44am 
Nice dude!:steamhappy: