sendTo
sendTo(number entity, number type, any params) → boolean sent
Sends a message to given entity.
Sends a message to the entity with id entity.
Parameters
- entity: The id of the entity the message will be sent to.
- type: The type of message to send (see the MESSAGE_* constants).
- params: The parameters of the message, which can be any value.
Return
- sent:
true if the message was delivered, false otherwise: the entity does not exist, is your own entity, or the recipient's mailbox is full.
Additional information
- An entity keeps at most 200 messages from its allies and 200 from its enemies between two of its turns, counted separately: an opponent's messages never take the place of its team's. Beyond that, the message is refused and
sendTo returns false.