- Joined
- Sep 21, 2005
- Messages
- 119
Here it is.. It doesn't lag in SP, at least not on my computer, but it lags like hell when hosted with multiple people. Anyone know how to fix, or remake this a better way?
-
Attack gates
-
Events
- Time - Every 5.50 seconds of game time
- Conditions
-
Actions
- Set ZombieGateAttackGroups = (Units in (Playable map area) matching (((Unit-type of (Matching unit)) Equal to Zombie (Real Zombie)) or ((Unit-type of (Matching unit)) Equal to Hunter)))
-
Unit Group - Pick every unit in ZombieGateAttackGroups and do (Actions)
-
Loop - Actions
-
Destructible - Pick every destructible within 500.00 of (Position of (Picked unit)) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Picked destructible) is alive) Equal to True
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Destructible-type of (Picked destructible)) Equal to Elven Gate (Diagonal 1)
- (Destructible-type of (Picked destructible)) Equal to Elven Gate (Diagonal 2)
- (Destructible-type of (Picked destructible)) Equal to Elven Gate (Horizontal)
- (Destructible-type of (Picked destructible)) Equal to Elven Gate (Vertical)
- (Destructible-type of (Picked destructible)) Equal to Gate (Diagonal 1)
- (Destructible-type of (Picked destructible)) Equal to Gate (Diagonal 2)
- (Destructible-type of (Picked destructible)) Equal to Gang Door (Horizontal)
- (Destructible-type of (Picked destructible)) Equal to Door (Vertical)
-
Conditions
-
Or - Any (Conditions) are true
-
Then - Actions
- Unit - Order (Picked unit) to Attack (Picked destructible)
- Custom script: call DestroyGroup(udg_ZombieGateAttackGroups)
-
Else - Actions
- Custom script: call DestroyGroup(udg_ZombieGateAttackGroups)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Else - Actions
- Custom script: call DestroyGroup(udg_ZombieGateAttackGroups)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
Destructible - Pick every destructible within 500.00 of (Position of (Picked unit)) and do (Actions)
-
Loop - Actions
-
Events