M_MSCLoader_PlayMakerExtensions_FsmInject
piotrulos edited this page Apr 7, 2023
·
4 revisions
FSM Inject as extension (same as old FsmHook.FsmInject)
Namespace: MSCLoader
Assembly: MSCLoader (in MSCLoader.dll) Version: 1.2.11.286
C#
public static void FsmInject(
this GameObject gameObject,
string stateName,
Action hook
)
- gameObject
- Type: GameObject
GameObject where to hook - stateName
- Type: System.String
Name of the state - hook
- Type: System.Action
Your function to hook
In Visual Basic and C#, you can call this method as an instance method on any object of type GameObject. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
- How to install MSCLoader using MSCPatcher
- MSCPatcher explained
- How to install mods
- Official experimental linux support
- Unofficial tutorial for linux (wine/proton)
- Install Visual Studio for MSCLoader
- Install template for Visual Studio
- How to use templates
- Debugging your mods in Visual Studio
- Enable DevMode to help with debugging
- Uploading and creating Self update feature for your mod or reference
- All Playmaker Global Variables and Events
- How to create and use Asset Bundles