Need help with script to always enable Invulnerability after returning from afterlife mode in Mob of the Dead
-
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; } } -
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; } }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 Licker search the dump for a notify or waittill, I never coded map specific stuff so I don't have it in memory
-
Resxt So github is what you meant by "the dump". Notes this in my brain.
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