CAIAgentManager:GetAIAgentsOfGroupFromLUA v2
From Nomad DB
Retrieves the entity IDs of AI agents from the specified agent type.
Syntax
CAIAgentManager_GetInstance():GetAIAgentsOfGroupFromLUA_v2(agentType, affiliation, group, health, hostility)
- agentType (string): Target AI agent type
- affiliation (number): Target AI agent affiliation
- group (string): currently unknown, usually empty string
- health (number): Target AI agent health state
- hostility (number): Target AI agent hostility type
- Returns (table): Table containing entity IDs
Example
Causes the player to send himself bullet damage.
SendDamageToEntity(GetLocalPlayerEntityId(), GetLocalPlayerEntityId(), 3, 100, 512)
Parameters
Type
Name |
---|
All |
Human |
... |
Health
ID | State |
---|---|
0 | Alive |
1 | Any |
... |
Hostility
ID | State |
---|---|
0 | Any |
1 | Enemy |
2 | Not Enemy |
... |