|
Endstar LUA API Documentation
|
This class is used to SpawnNpcs and access members of npc groups. More...
Public Member Functions | |
| Context | SpawnNpc (Context instigator, CellReference cellReference, NpcConfiguration config, Context fallbackContextForPosition) |
| Attempts to spawn an npc near the given cell reference. | |
| Context | SpawnNpc (Context instigator, UnityEngine.Vector3 position, float yAxisRotation, NpcConfiguration config) |
| Attempts to spawn an npc near the given position with the given rotation. | |
| Context | SpawnNpc (Context instigator, UnityEngine.Vector3 position, NpcConfiguration config, Context rotationContext) |
| Attempts to spawn an npc near the given position with the same rotation as the rotationContext. | |
| Context | GetNpcInGroupByIndex (int group, int index) |
| Returns the context of the npc in the group by its index. | |
| int | GetNumNpcsByGroup (int group) |
| Returns the number of npcs in a given group. | |
| NpcConfiguration | CreateNewConfiguration () |
| Creates a default configuration for an npc. | |
| NpcConfiguration | CopyNpcConfiguration (Context context) |
| Creates a copy of the configuration of the npc associated with this context. | |
This class is used to SpawnNpcs and access members of npc groups.
| NpcConfiguration CopyNpcConfiguration | ( | Context | context | ) |
Creates a copy of the configuration of the npc associated with this context.
| context |
| NpcConfiguration CreateNewConfiguration | ( | ) |
Creates a default configuration for an npc.
| Context GetNpcInGroupByIndex | ( | int | group, |
| int | index ) |
Returns the context of the npc in the group by its index.
| group | The group to select an npc from. |
| index | The index of the npc in the group. |
| int GetNumNpcsByGroup | ( | int | group | ) |
Returns the number of npcs in a given group.
| group | The group to analyze. |
| Context SpawnNpc | ( | Context | instigator, |
| CellReference | cellReference, | ||
| NpcConfiguration | config, | ||
| Context | fallbackContextForPosition ) |
Attempts to spawn an npc near the given cell reference.
| instigator | The context triggering the spawn. |
| cellReference | The position to spawn the npc. |
| config | The configuration of the npc to be spawned. |
| fallbackContextForPosition | The context of the prop that will be used for the fallback position. |
| Context SpawnNpc | ( | Context | instigator, |
| UnityEngine.Vector3 | position, | ||
| float | yAxisRotation, | ||
| NpcConfiguration | config ) |
Attempts to spawn an npc near the given position with the given rotation.
| instigator | The context triggering the spawn. |
| position | The position at which to attempt to spawn the npc. |
| yAxisRotation | The rotation to spawn the npc with. |
| config | The configuration of the npc to be spawned. |
| Context SpawnNpc | ( | Context | instigator, |
| UnityEngine.Vector3 | position, | ||
| NpcConfiguration | config, | ||
| Context | rotationContext ) |
Attempts to spawn an npc near the given position with the same rotation as the rotationContext.
| instigator | The context triggering the spawn. |
| position | The position at which to attempt to spawn the npc. |
| config | The configuration of the npc to be spawned |
| rotationContext | The context of the world object to use as the rotation reference. |