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

Plutonium

  1. Home
  2. BO2 Modding Support & Discussion
  3. Need help with script to always enable Invulnerability after returning from afterlife mode in Mob of the Dead

Need help with script to always enable Invulnerability after returning from afterlife mode in Mob of the Dead

Scheduled Pinned Locked Moved BO2 Modding Support & Discussion
5 Posts 2 Posters 104 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.
  • Slug Lickerundefined Offline
    Slug Lickerundefined Offline
    Slug Licker
    wrote on last edited by Slug Licker
    #1

    Resxt I need to somehow put in that loop a way to know when the host/player has turned back to human from afterlife, then enable invulnerability on the human. How? 😖

    There's probably a better way of doing this without a while loop to reduce cpu usage but I don't know how.

    init()
    {
    	level.clientid = 0;
    	level thread onplayerconnect();
    }
    onplayerconnect() 
    {
    	self waittill("connected", player);
    	wait 10;
    	iprintlnbold("Hello");
    	counter = 1;
    	while(true)
    	{
    		counter++;
    		iprintlnbold("Loop count: ", counter); //This is so I know the loop is working
    		wait 5;
    	}
    	
    }
    
    Resxtundefined 1 Reply Last reply
    0
    • Resxtundefined Offline
      Resxtundefined Offline
      Resxt Plutonium Staff
      replied to Slug Licker on last edited by
      #2

      Slug Licker search the dump for a notify or waittill, I never coded map specific stuff so I don't have it in memory

      Slug Lickerundefined 1 Reply Last reply
      1
      • Slug Lickerundefined Offline
        Slug Lickerundefined Offline
        Slug Licker
        replied to Resxt on last edited by
        #3

        Resxt dumpster-diving-600nw-403414.png

        1 Reply Last reply
        0
        • Resxtundefined Offline
          Resxtundefined Offline
          Resxt Plutonium Staff
          wrote on last edited by
          #4

          https://github.com/search?q=repo%3Aplutoniummod%2Ft6-scripts afterlife&type=code

          Slug Lickerundefined 1 Reply Last reply
          1
          • Slug Lickerundefined Offline
            Slug Lickerundefined Offline
            Slug Licker
            replied to Resxt on last edited by
            #5

            Resxt So github is what you meant by "the dump". Notes this in my brain.

            1 Reply Last reply
            0

            • Login

            • Don't have an account? Register

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