What this component contains
ATTRIBUTION.mdLICENSEREADME.mdbaltor_test.gdcomponent.jsoninspect_gdscript.pyrun_tests.gdtest_package.pytests/test_utility_ai.gdutility_ai.gdverification/native.json
How it works
- Class
- BaltorUtilityAI, extends RefCounted
- Methods
- add_action(action_name: StringName, weight: float = 1.0) -> bool; add_consideration(action_name: StringName, input: Callable, minimum: float, maximum: float, curve: Response = Response.LINEAR, slope: float = 1.0, exponent: float = 1.0, x_shift: float = 0.0, y_shift: float = 0.0) -> bool; curve_value(curve: Response, x: float, slope: float = 1.0, exponent: float = 1.0, x_shift: float = 0.0,…
- Signals
- action_changed
- Placement
- res://baltor/godot_components/utility_ai/
Recorded checks
godot 4.7.2.stable.official.ed1daf0bf
godot_parse_check_onlygodot_gdscript_testsgodot_tests_reject_gutted_componentgodot_editor_importgodot_contract_reflectiongodot_readme_usage_compiles
Limits to consider
Chooses the single best action; no weighted random among the top choices. Scores are only as good as the considerations and curve parameters, which need tuning per game. Verified with Godot 4.7.2 headless; written against the Godot 4.3 API.