ax.util¶
Source: gamemode/framework/util/util_bots.lua
Utility helpers used across the Parallax framework (printing, file handling, text utilities, etc.).
Section: bot_utilities
Documented functions: 4
Functions¶
ax.util:CreateBotCharacter(client)ax.util:GenerateBotName()ax.util:GetRandomBotFaction()ax.util:GetRandomFactionModel(faction)
ax.util:CreateBotCharacter(client)¶
Creates a temporary character for a bot with random faction and appearance Bot characters are not stored in the database and exist only in memory
Realm: server
Parameters
| Name | Type | Description |
|---|---|---|
client |
Player |
The bot player object |
Usage
ax.util:GenerateBotName()¶
Generates a random name for a bot
Returns
string: A randomly generated full name
Usage
ax.util:GetRandomBotFaction()¶
Gets a random faction that bots can join
Returns
table|nil: Random faction table or nil if no valid factions
Usage
ax.util:GetRandomFactionModel(faction)¶
Gets a random model from a faction's model list
Parameters
| Name | Type | Description |
|---|---|---|
faction |
table |
The faction to get a model from |
Returns
string|table|nil: Random model (string or table {model, skin}) or nil if no models available
Usage