Space Engineers

Space Engineers

Not enough ratings
ComSat Laser Antenna Advertisement
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
705.000 B
22 Dec, 2017 @ 1:49pm
1 Change Note ( view )

Subscribe to download
ComSat Laser Antenna Advertisement

Description
A script for communication satelites to advertise the locations of their available laser antennas.
This is for small ships whose radioantennas can't reach far enough.

Should be run every couple of seconds via a timerblock (RunTime.UpdateFrequency would probably be a bit too much).

Format: ANY|{Grid EntityId}:{ProgrammableBlock EntityId}|COMSAT|{Satelite coordinates (using coordinates of programmable block)}|{Coordinates of laser antennas, separated by semicolons}

The coordinates are generated using the ToString method in the Vector3D class and can be parsed using Vector3D.TryParse().

The format uses the following convention {to}|{from|{protocol}|{body}.

The to and from fields consist of the either the the grid's entity id, the programmable block's entity id or both, separated by a colon. Or it could be "ANY" as is the case in this script.

Protocol in this case is "COMSAT" and doesn't expect any response.

Body consists of 2 more fields: the first satelite's coorinates and then the laserantenna coordinates, separated by semicolons.

This is part of my attempt to create a communication protocol for controlling drones and missiles.