Thread: Scripts.lua ?
View Single Post
Old 04-18-2005, 05:13 AM   #5 (permalink)
pabtyf3
Member
 
Join Date: Jan 2005
Posts: 31
Default

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 )
pabtyf3 is offline   Reply With Quote