Improve performance

Cilla

is watching you! Ahh, fresh meat!
Reaction score
39
Can you improve the game performance if you destroy destructibles etc in regions where no players/heros (orpg) are playing?

I thought that you could create all destructibles etc in a region which is entered and destroy all those destructibles when the region is left



Btw:
Is there a difference in game performance between using fog of war and no fog? Because some animations are not played when they are ~fogged
Can you create destructibles with negative z values? (I think you cannot :s right?)
 

elmstfreddie

The Finglonger
Reaction score
203
I believe if you don't see it it still gets rendered, so I guess destroying them would work, but then it'd lag when entering a region wouldn't it :p
 

Cilla

is watching you! Ahh, fresh meat!
Reaction score
39
Yeah, but I prefer a -=loading region=- lag instead of a laggin map

Btw: i just checked, you can create destructables with negative z values
 
I

Indozt4r

Guest
You mean that you can create a large region and put things into it and make a trigger do that when the region is destroyed then the things and stuff you putted into the region is destroyed too ?
 

Cilla

is watching you! Ahh, fresh meat!
Reaction score
39
Nope,
I mean that I destroy all destructibles in a region when no players are in this region
and that i create destructibles in regions which are entered by a player
 

WarLuvr3393

Hmmm...too many things to play (WoW, COD4, WC3)
Reaction score
54
Code:
Help at TheHelper
    Events
        Time - Every 1.00 seconds of game time
    Conditions
    Actions
        Set <Integer Variable> = (Number of units in (Units in (<Destructible Region>)))
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                <Integer Variable> Equal to 0
            Then - Actions
                Destructible - Pick every destructible in (<Destructible Region>) and do (Actions)
                    Loop - Actions
                        Destructible - Kill (Picked destructible)
            Else - Actions
                Do nothing

Edit: I did the whole trigger in WE. Your welcome.
 
I

IKilledKEnny

Guest
Thanks for helping WarLuvr3393, just note though that this would leak.
 

Cilla

is watching you! Ahh, fresh meat!
Reaction score
39
I see that the trigger is in WE and Your welcome - means what?

Ehh, I didn ask about a simple gui trigger. ( and which is leaky yy ok thanks kenny)
Next time read the question, thanks in advance.



Is there a difference in game performance between using fog of war and no fog? Because some animations are not played when they are ~fogged

(Sry if I am a bit rude)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top