Buat Para pengguna Leak Check
Code:
Contoh
Events
Time - Elapsed game time is 5.00 seconds
Conditions
Actions
Set TempGroup1 = (Units currently selected by Player 1 (Red))
Unit Group - Pick every unit in TempGroup1 and do (Actions)
Loop - Actions
Set TempPoint1 = (Center of (Playable map area))
Unit - Create 1 |c007EBFF1Footman for Player 1 (Red) at TempPoint1 facing Default building facing (270.0) degrees
Custom script: call RemoveLocation( udg_TempPoint1 )
Custom script: call DestroyGroup( udg_TempGroup1)
triger diatas dibilang LEAK FREE, padahal dengan triger diatas masih leak yang cukup hebat
Yang bener
Code:
Contoh
Events
Time - Elapsed game time is 5.00 seconds
Conditions
Actions
Set TempGroup1 = (Units currently selected by Player 1 (Red))
Unit Group - Pick every unit in TempGroup1 and do (Actions)
Loop - Actions
Set TempPoint1 = (Center of (Playable map area))
Unit - Create 1 |c007EBFF1Footman for Player 1 (Red) at TempPoint1 facing Default building facing (270.0) degrees
Custom script: call RemoveLocation( udg_TempPoint1 )
Custom script: call DestroyGroup( udg_TempGroup1)
gw dah kejebak triger diatas and buat kk2 biar tidak kejeblos
Share This Thread