Skip to content

Cross Mod Provided Support

direwolf420 edited this page Apr 22, 2025 · 1 revision

Cross Mod Provided Support

This mod provides ways for other mods to access, add, or modify things about this mod.

Mod.Call

Mod Calls are special functions provided by tModLoader that mod creators can use to interact with ACT in certain ways. They are accessible through Mod.Call and a given call name; for more details, see the tModLoader wiki. This section lists the mod call functions ACT currently adds, along with examples and what they are used for.

To preface, all examples will be written within this block:

if (ModLoader.TryGetMod("AssortedCrazyThings", out Mod ACDMod))
{
    //Example here
}

GetDownedBoss

  • Options: "SoulHarvester"
  • Return value: bool representing the downed status of the boss. null if not found or invalid
  • Example: if (ACTMod.Call("GetDownedBoss", "SoulHarvester") == true) DoSomethingSpecial();

Clone this wiki locally