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

What type of data can be sent using the IGC.SendBroadcastMessage() function?

$
0
0
I want to send a bunch of different types of data in a single message but i dont want to make a string out of it.
I tried to do this:
Code:
if (Laser.Status == MyLaserAntennaStatus.Connected)
  {
  object Obj1 = new double[] { OrbitalPeriod };
  object Obj2 = HeightMap;
  object[] Data = new object[]{Obj1,Obj2};
  IGC.SendBroadcastMessage("Sattelite", Data);//Crashes here "Message type object[] is not allowed"
  HeightMap.Clear();
  Laser.Enabled = false;
  }
I also tried doing...

What type of data can be sent using the IGC.SendBroadcastMessage() function?

Viewing all articles
Browse latest Browse all 903

Trending Articles