• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Solved] Engage System issue

Status
Not open for further replies.

Chaosy

Tutorial Reviewer
Level 40
Joined
Jun 9, 2011
Messages
13,183
Simply put, I am using this: AI - Engage System v3.2

  • Demo
    • Events
      • Time - Elapsed game time is 1.00 seconds
    • Conditions
    • Actions
      • Unit - Create 1 Raider for Player 4 (Purple) at (Center of Region 000 <gen>) facing Default building facing degrees
      • Set U = (Last created unit)
      • Custom script: call EngageSystem.SetEngageUnit(udg_U,true)
      • Custom script: call EngageSystem.SetUnitPickItem(udg_U)
      • Custom script: call EngageSystem.SetUnitRetreat(udg_U)
      • Custom script: call EngageSystem.SetReturnPoints(udg_U, GetUnitX(udg_U),GetUnitY(udg_U))
      • Custom script: call EngageSystem.SetUnitLockTargets(udg_U, 17, 30)
It's not working. The unit is created but just stands there.
Yes, I did copy the dummy ability over and change the id.

edit: it works now, no clue why because I did not change the code.
A mod can remove this thread since it serves 0 purpose.
 
Last edited:
Status
Not open for further replies.
Top