SScriptingEvents
Index
Functions Index
| Function Name |
|---|
| void InvokeEvent (string name) |
Properties Index
| Property Name |
|---|
bool Enabled get set |
string[] Events get |
string ComponentName get |
SGameObject GameObject get |
Functions
InvokeEvent
void InvokeEvent (string name)
Invoke the event with its name
| Parameter | Type | Description |
|---|---|---|
- Lua
Space.Host.ExecutingObject.Events.InvokeEvent("EventName")
Properties
Enabled
bool Enabled get set
Whether the scriptingEvents component is enabled or not
- Lua
Space.Host.ExecutingObject.Events.Enabled = true
Events
string[] Events get
Returns a list of events
- Lua
eventNames = Space.Host.ExecutingObject.Events.Events
ComponentName
string ComponentName get
The name of this component.
- Lua
componentName = Space.Host.ExecutingObject.Events.ComponentName
GameObject
SGameObject GameObject get
Property Description
- Lua
theGameObject = Space.Host.ExecutingObject.Events.GameObject