M_MSCLoader_PlayMakerExtensions_FsmInject_3 - piotrulos/MSCModLoader GitHub Wiki

FsmInject(Transform, String, String, Action, Boolean, Int32, Boolean) Method

Insert custom Action to the Playmaker

Definition

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

Parameters

  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.

Return Value

Boolean
Whether the injection was successful

Usage Note

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).

See Also

Reference

PlayMakerExtensions Class
FsmInject Overload
MSCLoader Namespace

⚠️ **GitHub.com Fallback** ⚠️