$$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 */
| 3383 | $$END |
| 3384 | */ |
| 3385 | void 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 |
no outgoing calls
no test coverage detected