SScriptingEvents
ClientComponents
On this classInvokeEvent
- Functions
- Invoke
Event - Properties
- Enabled
- Events
- Component
Name - Game
Object
Members 5
| Function | InvokeEvent | Invoke the event with its name |
| Property | Enabled | Whether the scriptingEvents component is enabled or not |
| Property | Events | Returns a list of events |
| Property | ComponentName | The name of this component. |
| Property | GameObject | – |
Functions
InvokeEvent
void InvokeEvent(string name)
Invoke the event with its name
Parameters
| Name | Type | Default |
|---|---|---|
| name | string | – |
Returns
void
Example
Lua
Space.Host.ExecutingObject.Events.InvokeEvent("EventName")
Properties
Enabled
bool Enabled {get; set; }
Whether the scriptingEvents component is enabled or not
Example
Lua
Space.Host.ExecutingObject.Events.Enabled = true
EventsRead only
string[] Events {get; }
Returns a list of events
Example
Lua
eventNames = Space.Host.ExecutingObject.Events.Events
ComponentNameRead only
string ComponentName {get; }
The name of this component.
Example
Lua
componentName = Space.Host.ExecutingObject.Events.ComponentName
GameObjectRead only
Example
Lua
theGameObject = Space.Host.ExecutingObject.Events.GameObject



