Code: Select all
struct SEnemyEnterLOSEvent {int enemy;};
Moderators: hoijui, Moderators
Code: Select all
struct SEnemyEnterLOSEvent {int enemy;};
i'm sorry, i can't understand what you wrote. does that mean i can't get what i want in C++?PicassoCT wrote:if you had acess to the synced lua, i would say to try to get this as a enemyid via a pushed lua_call down into the engine identified..
Code: Select all
// it might not have been given to us! Could have been given to another team
springai::Unit* unit = springai::WrappUnit::GetInstance(skirmishAIId, evt->unitId);
if(callback->GetSkirmishAI()->GetTeamId() == unit->GetTeam()){
CSpringUnit* u = new CSpringUnit(callback,unit,game);
aliveUnits[evt->unitId] = u;
game->Me()->UnitGiven(u);
}
yes, that's what i needed. thank you, Tom!AF wrote:springai::Unit* unit = springai::WrappUnit::GetInstance(skirmishAIId, evt->unitId);