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

Function aAISetTeam

scripts/DallasFuncs.cpp:3385–3393  ·  view source on GitHub ↗

$$ACTION AI Set Team to [e:Teams] for the AI for object [o:Object] aAISetTeam Sets the team for a specific object Sets the team for a specific object Parameters: Team: Which team you want the object to belong to Object - the object whose team you want to change $$END */

Source from the content-addressed store, hash-verified

3383$$END
3384*/
3385void aAISetTeam(int team, int objhandle) {
3386 int flags = AIF_TEAM_MASK;
3387 AI_Value(objhandle, VF_CLEAR_FLAGS, AIV_I_FLAGS, &flags);
3388 flags = team; // AIF_TEAM_REBEL;
3389 AI_Value(objhandle, VF_SET_FLAGS, AIV_I_FLAGS, &flags);
3390
3391 int target_handle = OBJECT_HANDLE_NONE;
3392 AI_Value(objhandle, VF_SET, AIV_I_TARGET_HANDLE, &target_handle);
3393}
3394
3395/*
3396$$ACTION

Callers 14

CallEventMethod · 0.85
SetModeMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected