M_MSCLoader_PlayMakerExtensions_FsmInject_3 - piotrulos/MSCModLoader GitHub Wiki
Insert custom Action to the Playmaker
Namespace: MSCLoader
Assembly: MSCLoader (in MSCLoader.dll) Version: 1.3.1.346
C#
public static bool FsmInject(
this Transform tf,
string playmakerName,
string stateName,
Action hook,
bool everyFrame = false,
int index = -1,
bool replace = false
)
View Source
- Transform
- Owner transform
- String
- Target Playmaker name
- String
- Target state name
- Action
- Action callback
- Boolean (Optional)
- Execute this function every frame while the state is active
- Int32 (Optional)
- The index where to insert the action
- Boolean (Optional)
- If true, replaces the action at specified index, otherwise inserts it.
Boolean
Whether the injection was successful
In Visual Basic and C#, you can call this method as an instance method on any object of type Transform. 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).
PlayMakerExtensions Class
FsmInject Overload
MSCLoader Namespace