Class ModEventScript
- Namespace
- SkyrimForge.Papyrus
- Assembly
- SkyrimForge.Game.dll
Functions and comments from ModEvent.psc.
ModEvent allows sending mod events with any number/type of arguments, unlike the more limited Form.SendModEvent.
public static class ModEventScript
- Inheritance
-
ModEventScript
- Inherited Members
Properties
Dispatcher
The dispatcher that binds this script to a form and calls the functions and properties that have no generated member.
public static PapyrusScriptDispatcher Dispatcher { get; }
Property Value
Methods
Create(string)
Creates a new ModEvent and returns the handle.
public static Task<int> Create(string eventName)
Parameters
eventNamestring
Returns
PushBool(int, bool)
public static Task PushBool(int handle, bool value)
Parameters
Returns
PushFloat(int, float)
public static Task PushFloat(int handle, float value)
Parameters
Returns
PushForm(int, IForm)
public static Task PushForm(int handle, IForm value)
Parameters
Returns
PushInt(int, int)
public static Task PushInt(int handle, int value)
Parameters
Returns
PushString(int, string)
public static Task PushString(int handle, string value)
Parameters
Returns
Release(int)
Releases the ModEvent without sending it.
public static Task Release(int handle)
Parameters
handleint
Returns
Send(int)
Sends the ModEvent and releases it. Returns true, if it was sent successfully, false if an error happened.
public static Task<bool> Send(int handle)
Parameters
handleint