Createing some unit type for first time in game - lag :(

Status
Not open for further replies.
Level 14
Joined
Mar 4, 2009
Messages
1,156
when i create some unit for the first time it lags,(small freezing on 1 second)

but if i (put my unit type) already in WE it will not lag :slp: ....

any way to fix that?

and i cant use event every 0.10 sec and create some unit because it starts to lag like hell :O

but if i use event - player types S and how ever fast i click it.no lags


a bit strange thing but...,anyway to fix spawning accept put unit in WE ?
 
Level 16
Joined
Jul 21, 2008
Messages
1,121
You will have to make it like this:
  • Preload
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set TempPoint = (Center of (Playable map area))
      • Unit - Create 1 <Unit 1> for Player Neutral Passive at TempPoint facing Default building facing degrees
      • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
      • Unit - Create 1 <Unit 2> for Player Neutral Passive at TempPoint facing Default building facing degrees
      • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
      • Unit - Create 1 <Unit 3> for Player Neutral Passive at TempPoint facing Default building facing degrees
      • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
      • Custom script: call RemoveLocation(udg_TempPoint)
Or you can place your units on map then remove them with triggers. I have used this way in my Vampirism Map.
 
Status
Not open for further replies.
Top