Script for AI to use bonus
Posted: Tue Sep 04, 2012 6:05 am
Sorry to ask this, but I am stuck. I have followed the code from other missions that where the AI uses artillery but I cannot get it to work.
In the StartTurn function I use:
SetBonusBaseValue("GermanArtHitWait", 1, 0) ;
CallBonusFunction("BONUS_GERMAN_BATTERY", 1, 20, 35, 0) ;
Tried different combinations of values (leaving only the second line also), but not artillery fire is occurring, anything else I need for it to happen? Thanks
In the StartTurn function I use:
SetBonusBaseValue("GermanArtHitWait", 1, 0) ;
CallBonusFunction("BONUS_GERMAN_BATTERY", 1, 20, 35, 0) ;
Tried different combinations of values (leaving only the second line also), but not artillery fire is occurring, anything else I need for it to happen? Thanks