0 of 0

File information

Last updated

Original upload

Created by

RedRoryOTheGlen

Uploaded by

RedRoryOTheGlen

Virus scan

Safe to use

Mod articles

  • Mod Messages Primer

    Setting up the reference to the Message Receiver:

    Mod tomeOfBattle = ModManager.Instance.GetModFromGUID("a166c215-0a5a-4582-8bf3-8be8df80d5e5");
    if (tomeOfBattle != null)
      {
    //place messages here
      }


    Mod messages:

    //returns the KeyCode of the TOB Attack Input
    KeyCode swingKeyCode = KeyCode.None;
    ModManager.Instance.SendModMessage(tomeOfBattle .Title, "getSwingKeyCode", null, (string message, object data) =>
    {
    swingKeyCode = (KeyCode)data;
    });

    //returns the Reach value of the currently equipped weapon
    float weaponReach = 0;
    ModManager.Instance.SendModMessage(tomeOfBattle .Title, "getWeaponR...