Search

Search found 4 matches

by conanos
02 Jul 2008, 21:55
Forum: AI
Topic: Need help with AI developing(VS2005).
Replies: 6
Views: 842

Re: Need help with AI developing(VS2005).

thx but i use somethink like that :

Code: Select all

const UnitDef *ud=callback->GetAICallback()->GetUnitDef(attacker);
	if(ud!=0)
	{...}
and it works :-) .
Thank you AF.
by conanos
02 Jul 2008, 21:03
Forum: AI
Topic: Need help with AI developing(VS2005).
Replies: 6
Views: 842

Re: Need help with AI developing(VS2005).

Thx. How can i check it? Sorry for that stiupid question but i want be sure.
by conanos
02 Jul 2008, 19:55
Forum: AI
Topic: Need help with AI developing(VS2005).
Replies: 6
Views: 842

Re: Need help with AI developing(VS2005).

The game crashes during the battle and vs show me unhalted exception.
It's debug build(rts and AI).
by conanos
02 Jul 2008, 16:42
Forum: AI
Topic: Need help with AI developing(VS2005).
Replies: 6
Views: 842

Need help with AI developing(VS2005).

I have start lern AI coding and i have a question: what is wrong in this code (BOT DLL): void TestGlobalAI::EnemyEnterLOS(int enemy) { enemies.insert(enemy); enemypos = callback->GetAICallback()->GetUnitPos(enemy); enemyspoted = true; losid[enemy]=1; } void TestGlobalAI::EnemyLeaveLOS(int enemy) { e...

Go to advanced search