Skip to main content

IKControllerMessage

A class in Root.Township, the global namespace.

Network message that tells remote players' copies whether a player's IK body control is on or off (for out of body states).

Constructors​

MemberWhat it is
IKControllerMessage()Creates an IKControllerMessage with default values.

Fields​

5 private and internal fields
MemberWhat it is
private bool isControlActiveBacking field for IsControlActive.
private bool isDisablingIKCompletelyBacking field for IsDisablingIKCompletely.
private bool isMovingExtensionsBacking field for IsMovingExtensions.
private bool isShowingGhostHandsBacking field for IsShowingGhostHands.
private string outOfBodyMessageBacking field for OutOfBodyMessage.

Properties​

MemberWhat it is
bool IsControlActive { get; }True when IK control is on.
bool IsDisablingIKCompletely { get; }True when IK is turned off fully rather than just control.
bool IsMovingExtensions { get; }Whether the hand extensions keep moving.
bool IsShowingGhostHands { get; }Whether ghost hands are shown while control is off.
string OutOfBodyMessage { get; }Text shown while control is off.

Methods​

MemberWhat it is
void Disable(string outOfBodyMessage, bool isDisablingIKCompletely = false, bool isMovingExtensions = true, bool isShowingGhostHands = true)Fills the message for turning IK control off, with an out of body message and display options.
void Enable(bool isMovingExtensions = true)Fills the message for turning IK control on.
void Serialize(IPlayer player, Stream stream)Reads or writes the message; the off state fields are only sent when control is off.