MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / AISetTarget

Function AISetTarget

Descent3/AImain.cpp:1700–1708  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1698}
1699
1700bool AISetTarget(object *obj, int handle) {
1701 ai_frame *ai_info = obj->ai_info;
1702
1703 ai_info->target_handle = handle;
1704 if (handle == OBJECT_HANDLE_NONE)
1705 ai_info->last_see_target_pos = obj->pos;
1706
1707 return ai_target_valid(obj);
1708}
1709
1710// Note ASSUMES that dir is normalized
1711void AIMoveTowardsDir(object *obj, vector *dir, float scale) {

Callers 4

osipf_AIValueFunction · 0.85
AINotifyFunction · 0.85
AIInitFunction · 0.85
AIDetermineTargetFunction · 0.85

Calls 1

ai_target_validFunction · 0.85

Tested by

no test coverage detected