All players leave the game when choosing heros ..?

Troll

New Member
Reaction score
4
Code:
init 10
    Events
        Unit - A unit Sells a unit
    Conditions
        ((Sold unit) is A Hero) Equal to True
    Actions
        Unit Group - Pick every unit in (Units owned by (Owner of (Sold unit)) of type Circle of Power) and do (Actions)
            Loop - Actions
                Special Effect - Create a special effect at (Position of (Picked unit)) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
                Special Effect - Destroy (Last created special effect)
                Unit - Kill (Picked unit)
        Player Group - Pick every player in (All players) and do (Actions)
            Loop - Actions
                Player - Make (Unit-type of (Sold unit)) Unavailable for training/construction by (Picked player)
        Unit - Move (Sold unit) instantly to ((Owner of (Sold unit)) start location)
        Camera - Pan camera as necessary for (Owner of (Sold unit)) to (Position of (Sold unit)) over 0.00 seconds
        Selection - Select (Sold unit) for (Owner of (Sold unit))


i don't know if is for this, but all players suddenly leave the game after they choose the heros, you know, is a footmen map, all players pick their hero almsot at the same time causing lag etc, it could be because of the trigger? leak?
 

vypur85

Hibernate
Reaction score
803
Code:
Camera - Pan camera as necessary for (Owner of (Sold unit)) to (Position of (Sold unit)) over 0.00 seconds

Change that to 'Camera - Pan Camera (Timed)'. That was the cause of desync.
 

minikrampan

Ultra Cool Member
Reaction score
28
Also with the special effect wouldnt it be removed almost instantly when its been created? This is most certainly not causing the crash though.
 

cleeezzz

The Undead Ranger.
Reaction score
268
no, usually, when destroyed, special effects will finish playing before they dissapear. but that is USUALLY, there are exceptions to some special effects.
 

Viikuna

No Marlo no game.
Reaction score
265
If you instantly destroy your effect it will only play its death animation. If death animation is what you are looking for then there is no problem.
 
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