asked on
private void checkBox1_CheckedChanged(object sender, EventArgs e)
{
if (enableAutoSit.Checked)
{
enableAutoSit.Checked = false;
LogErrors("Auto-sit disabled.", Color.Blue);
}
else
{
enableAutoSit.Checked = SeatID != null;
if (enableAutoSit.Checked)
{
LogErrors("Auto-sit enabled (" + SeatID.ToString() + ")", Color.Blue);
Client.Self.RequestSit(SeatID, LLVector3.Zero);
Client.Self.Sit();
}
else
{
LogErrors("Auto-sit object ID invalid or not defined.", Color.Blue);
}
}
}