Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse

Plutonium

  1. Home
  2. BO2 Modding Support & Discussion
  3. Zombies Counter Crashing BO2

Zombies Counter Crashing BO2

Scheduled Pinned Locked Moved BO2 Modding Support & Discussion
3 Posts 2 Posters 571 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ThugDuck12undefined Offline
    ThugDuck12undefined Offline
    ThugDuck12
    wrote on last edited by
    #1

    Any zombie counter that i try, that "works" it crashes, the others are script failures, I have the crash file pls help.

    9c9cf7e6-6ff3-4388-977d-8faaf9f9bcb4-image.png 670ed3e7-2170-4579-90fb-45082cf7208f-image.png
    the .dmp file: https://we.tl/t-PehZeAJbR1
    Without the zombie counter script it works fine 😞

    My discord: ThugDuck12#3747

    Cahzundefined 1 Reply Last reply
    0
    • ThugDuck12undefined ThugDuck12

      Any zombie counter that i try, that "works" it crashes, the others are script failures, I have the crash file pls help.

      9c9cf7e6-6ff3-4388-977d-8faaf9f9bcb4-image.png 670ed3e7-2170-4579-90fb-45082cf7208f-image.png
      the .dmp file: https://we.tl/t-PehZeAJbR1
      Without the zombie counter script it works fine 😞

      My discord: ThugDuck12#3747

      Cahzundefined Offline
      Cahzundefined Offline
      Cahz
      VIP
      wrote on last edited by
      #2

      ThugDuck12 Try this

      init()
      {
          level thread onPlayerConnect();
      }
      
      onPlayerConnect()
      {
          for(;;)
          {
              level waittill("connected", player);
              player thread drawZombiesCounter();
          }
      }
      
      drawZombiesCounter()
      {
          self.zombiesCounter = maps/mp/gametypes_zm/_hud_util::createFontString( "hudsmall" , 1.9 );
          self.zombiesCounter maps/mp/gametypes_zm/_hud_util::setPoint( "CENTER", "CENTER", "CENTER", 190 );
          while( true )
          {
          	self.zombiesCounter setValue( ( maps/mp/zombies/_zm_utility::get_round_enemy_array().size + level.zombie_total ) );
              if( maps/mp/zombies/_zm_utility::get_round_enemy_array().size + level.zombie_total != 0 )
              	self.zombiesCounter.label = &"Zombies: ^1";
              else
              	self.zombiesCounter.label = &"Zombies: ^6";
              wait 0.05;
          }
      }
      
      1 Reply Last reply
      0
      • ThugDuck12undefined Offline
        ThugDuck12undefined Offline
        ThugDuck12
        wrote on last edited by
        #3

        Cahz niceee it worked, thanks a lot ❤

        1 Reply Last reply
        1

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Recent
        • Tags
        • Popular
        • Users
        • Groups