I'm currently trying to create an Instant Action AI using a DLL.
I do not want to use AIP's at all and I have deactivated them.
#1:
Now I'm trying to deploy the rec and then have it build a scavanger.
I do this:
Code: Select all
BuildStartingVehicle(m_CompTeam, m_CPUTeamRace, "*vrecycpu", "*vrecy", "RecyclerEnemy");
SetCommand(m_EnemyRecycler,CMD_DEPLOY,0,0,"RecyclerEnemy",0);
Code: Select all
if(IsDeployed(m_EnemyRecycler)) {
SetCommand(m_EnemyRecycler,CMD_BUILD,0,0,0,CalcCRC("ivscav"));
}
recy deploys. But in any case the IsDeployed function evaluates to true only after a the time it takes for the rec to deploy.
I do have enough scrap and it is the right handle. Also trying the same command on a constructor didn't work.
#2
When I deploy the recycler like that it is headed toward the wrong side.
I tried:
Code: Select all
SetCommand(m_EnemyRecycler,CMD_BUILD_ROTATE,0,0,0,0);
#3
The next thing I wanna now is about the Handles.
I can do:
Code: Select all
myHandle = BuildStartingVehicle(m_CompTeam, m_CPUTeamRace, "*vrecycpu", "*vrecy", "RecyclerEnemy");
#4
How can I get information about the pools, and the loose scrap on a map?