- Joined
- May 7, 2008
- Messages
- 330
So I have an event that spawns multiple units in a certain region, however I'm not sure if this is leak proof free.
The units spawn precisely as I want them to, but few people have told me whilst playing my map that they lag sometimes.
What do you think of this code, is there any room for improvement on it?
The units spawn precisely as I want them to, but few people have told me whilst playing my map that they lag sometimes.
What do you think of this code, is there any room for improvement on it?
- [/S]
-
Invasion 1 Copy 2
-
Events
- Time - Elapsed game time is 20.00 seconds
- Conditions
-
Actions
- Set VariableSet Point = (Random point in InvasionRegion <gen>)
- Set VariableSet InvasionPoint = (Center of King Region <gen>)
- Unit - Create 1 |cff00ff00Ghoul for Player 9 (Gray) at Point facing Default building facing degrees
- Unit - Order (Last created unit) to Patrol To InvasionPoint
- Unit - Create 1 |cff00ff00Ghoul for Player 9 (Gray) at Point facing Default building facing degrees
- Unit - Order (Last created unit) to Patrol To InvasionPoint
- Unit - Create 1 |cff00ff00Ghoul for Player 9 (Gray) at Point facing Default building facing degrees
- Unit - Order (Last created unit) to Patrol To InvasionPoint
- Unit - Create 1 |cff00ff00Ghoul for Player 9 (Gray) at Point facing Default building facing degrees
- Unit - Order (Last created unit) to Patrol To InvasionPoint
- Unit - Create 1 Meat Wagon for Player 9 (Gray) at Point facing Default building facing degrees
- Unit - Order (Last created unit) to Patrol To InvasionPoint
- Unit - Create 1 Meat Wagon for Player 9 (Gray) at Point facing Default building facing degrees
- Unit - Order (Last created unit) to Patrol To InvasionPoint
- Unit - Create 1 Gargoyle for Player 9 (Gray) at Point facing Default building facing degrees
- Unit - Order (Last created unit) to Patrol To InvasionPoint
- Unit - Create 1 Gargoyle for Player 9 (Gray) at Point facing Default building facing degrees
- Unit - Order (Last created unit) to Patrol To InvasionPoint
- Unit - Create 1 Gargoyle for Player 9 (Gray) at Point facing Default building facing degrees
- Unit - Order (Last created unit) to Patrol To InvasionPoint
- Unit - Create 1 Gargoyle for Player 9 (Gray) at Point facing Default building facing degrees
- Unit - Order (Last created unit) to Patrol To InvasionPoint
- Sound - Play HumanCallToArmsWhat1 <gen>
- Game - Display to (All players) for 8.00 seconds the text: |cffd45e19Undead|r ...
- Custom script: call RemoveLocation(udg_Point)
- Custom script: call RemoveLocation(udg_InvasionPoint)
-
Events