Writes packet to send using specific flags, taking the data in as string.
channel as UInt8,
data as String,
reliable as Boolean,
unsequenced as Boolean)
- The channel to send to.
- The data to send.
- True if the packet is supposed to be reliable, else false.
- True if the packets should be un-sequenced, else false. This parameter is ignored if the reliable parameter is set to true.