I want to force a unit to attack a certain enemy unit next to my unit.
I use the pushMission command:
VOID pushMission(MissionType eMission, INT iData1, INT iData2, INT iFlags, BOOL bAppend, BOOL bManual, MissionAIType eMissionAI, CyPlot pMissionAIPlot, CyUnit pMissionAIUnit)
It’s no problem to let the unit use the fortify, airpatrol or move to a certain plot (plot without enemy unit) with the pushMision command but I don’t know how I can force my unit to attack the enemy unit. ( I tried the mission_move_to, mission_move_to_unit, mission_begin_combat lines but the unit didn’t attack
Someone can help??
and what is the iFlags variable for?
I use the pushMission command:
VOID pushMission(MissionType eMission, INT iData1, INT iData2, INT iFlags, BOOL bAppend, BOOL bManual, MissionAIType eMissionAI, CyPlot pMissionAIPlot, CyUnit pMissionAIUnit)
It’s no problem to let the unit use the fortify, airpatrol or move to a certain plot (plot without enemy unit) with the pushMision command but I don’t know how I can force my unit to attack the enemy unit. ( I tried the mission_move_to, mission_move_to_unit, mission_begin_combat lines but the unit didn’t attack

Someone can help??
and what is the iFlags variable for?