Hi!
I wrote simple script, that show detected players on LCD:
Enemy player's Name in MyDetectedEntityInfo
I wrote simple script, that show detected players on LCD:
PHP:
string lcd_name = "BASE-DetectionLCD";
string sensor_name = "BASE-Sensor"
string detect_str = "";
IMyTextPanel lcd_panel = GridTerminalSystem.GetBlockWithName( lcd_name ) as IMyTextPanel;
IMySensorBlock sensor = GridTerminalSystem.GetBlockWithName( sensor_name ) as IMySensorBlock;
MyDetectedEntityInfo detected_entity = sensor.LastDetectedEntity;
if( detected_entity.Type == MyDetectedEntityType.CharacterHuman )
{...