Quantcast
Channel: Programming (In-game)
Viewing all articles
Browse latest Browse all 903

Enemy player's Name in MyDetectedEntityInfo

$
0
0
Hi!
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.GetBlockWithNamelcd_name ) as IMyTextPanel;
IMySensorBlock sensor GridTerminalSystem.GetBlockWithNamesensor_name ) as IMySensorBlock;

MyDetectedEntityInfo detected_entity sensor.LastDetectedEntity;

if( 
detected_entity.Type == MyDetectedEntityType.CharacterHuman )
{...
Enemy player's Name in MyDetectedEntityInfo

Viewing all articles
Browse latest Browse all 903

Trending Articles