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 position. | |
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) |
This class is used to SpawnNpcs and access members of npc groups.
NpcConfiguration CopyNpcConfiguration | ( | 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 position.
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. |