Game API IdMsgPrio

IdMsgPrio
Class used to pass advanced message information.

public int id
Used to specify to target of the message.

In the case, where this is used with 'allplayers': This number doesn't matter, and should be 0

In the case, where this is used with 'faction': This is the ID of the faction

In the case, where this is used with 'single player': this is the entityID of the targeted plaer.

public string msg
Used to assign msg.

public byte prio
Used to assign prio. Can be

0:normal (red)

1:alert (yellow)

2:Attention (blue)

public float time
Used to assign how long the message should stick around for on the users screen (?)

public IdMsgPrio
Constructor.

public IdMsgPrio(int nId, string nMsg, byte nPrio, float nTime);
Constructor, with parameter.