yes I have this in scriptevents.xml:
Code:
EventList Name="IsengardLurtzFunctions" Inherit="BaseScriptFunctions"
EventHandler EventName="OnCreated" ScriptFunctionName="OnIsengardLurtzCreated" DebugSingleStep="false"/
/EventList
(it wouldn't let me post with the <> tags so I had to remove them)
then I added this tho the script.lua:
Code:
function OnIsengardLurtzCreated(self)
ObjectModelCondition(self, WEAPONSET_TOGGLE_1, true )
end
and finally added this to the units code
Code:
Behavior = AIUpdateInterface ModuleTag_03
AutoAcquireEnemiesWhenIdle = Yes ATTACK_BUILDINGS
AILuaEventsList = IsengardLurtzFunctions
MoodAttackCheckRate = 500
AttackPriority = AttackPriority_Archer
End
Of course I may have the sytax completely wrong. Any help appreciated (hint hint Deezire

)