• 🏆 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!

[Trigger] Rally Point Spawn Movement System

Status
Not open for further replies.
Level 8
Joined
Feb 2, 2013
Messages
97
So after I had lots of issues and game crashes with movement towers, which move around 90 units at once I want to implent a rally point system instead which is used in maps like Lordaeron Tactics for example.

Do you guys have any suggestions for me, or experiences with these systems and how they work best? There are two different variants I'm experiencing with atm.

The first one is set at the end of the spawn triggers (which all happen in periodic events of 110 seconds).

Set Point = (Rally-Point of -SPAWNBUILDING- as a point)
Set Temp_Group = (Units in -SPAWN LOCATION- owned by -SPAWNING PLAYER-))

Unit Group - Pick every unit in Temp_Group and do (Actions)
Loop - Actions
Unit - Order (Picked unit) to Attack-Move To Point
Custom script: call RemoveLocation(udg_Point)
Custom script: call DestroyGroup (udg_Temp_Group)

Second one is integrated into the Spawn Trigger itself:

...
Unit - Create 1 Footmen for SPAWNING PLAYER at SPAWNPOINT facing blabla...
Unit - Order (Last created unit) to Attack-Move to (Point)
Unit - Create 1 Archer for SPAWNING PLAYER at SPAWNPOINT facing blabla...
Unit - Order (Last created unit) to Attack-Move to (Point)

Btw: 1. do the rally point create a leak or don't I need the "Point" variable and 2. does it Last created unit work like this too:
Unit - Create 4 Archer for SPAWNING PLAYER at SPAWNPOINT facing blabla...
Unit - Order (Last created unit) to Attack-Move to (Point)

Any ideas/suggestions to improve it?
 
Status
Not open for further replies.
Top