Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
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 207 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
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
    • Cahzundefined Offline
      Cahzundefined Offline
      Cahz VIP
      replied to ThugDuck12 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

        • Login

        • Don't have an account? Register

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