Smirnoff Posted April 7, 2016 Share Posted April 7, 2016 Good morning or nights and greetings I have a bug in my gm of dayz happens when the player dies and backpacks have in inventory they do not disappear the debugscript I do not throw that throw errors or are not related to the bug in question if anyone knows to be or know that function is responsible for the removal of items at death your help would be great only errors that appear Lines of the function in question from mistakes function showDayZDeathScreen() setTimer ( fadeCamera, 1000, 1, true, 1.5 ) deadBackground = guiCreateStaticImage(0,0,1,1,"images/dead.jpg",true) deathText = guiCreateLabel(0,0.8,1,0.2,"You died! \n You will respawn in 5 seconds.",true) guiLabelSetHorizontalAlign (deathText,"center") setTimer(guiSetVisible,5000,1,false) --- 1737 setTimer(guiSetVisible,5000,1,false) --- 1738 setTimer(destroyElement,5000,1,deathText) setTimer(destroyElement,5000,1,deadBackground)end Link to comment
Smirnoff Posted April 7, 2016 Author Share Posted April 7, 2016 Good morning or nights and greetings I have a bug in my gm of dayz happens when the player dies and backpacks have in inventory they do not disappear the debugscript I do not throw that throw errors or are not related to the bug in question if anyone knows to be or know that function is responsible for the removal of items at death your help would be great only errors that appear Lines of the function in question from mistakes function showDayZDeathScreen() setTimer ( fadeCamera, 1000, 1, true, 1.5 ) deadBackground = guiCreateStaticImage(0,0,1,1,"images/dead.jpg",true) deathText = guiCreateLabel(0,0.8,1,0.2,"You died! \n You will respawn in 5 seconds.",true) guiLabelSetHorizontalAlign (deathText,"center") setTimer(guiSetVisible,5000,1,false) --- 1737 setTimer(guiSetVisible,5000,1,false) --- 1738 setTimer(destroyElement,5000,1,deathText) setTimer(destroyElement,5000,1,deadBackground) end Link to comment
Ahmed Ly Posted April 8, 2016 Share Posted April 8, 2016 deadBackground = guiCreateStaticImage(0,0,1,1,"images/dead.jpg",true) deathText = guiCreateLabel(0,0.8,1,0.2,"You died! \n You will respawn in 5 seconds.",true) guiLabelSetHorizontalAlign (deathText,"center") addEventHandler("onClientPlayerWasted",root, function () guiSetVisible(deadBackground,true) guiSetVisible(deathText,true) setTimer(set,3000,1) end ) function set() guiSetVisible(deadBackground,false) guiSetVisible(deathText,false) end Link to comment
Ahmed Ly Posted April 8, 2016 Share Posted April 8, 2016 deadBackground = guiCreateStaticImage(0,0,1,1,"images/dead.jpg",true) deathText = guiCreateLabel(0,0.8,1,0.2,"You died! \n You will respawn in 5 seconds.",true) guiLabelSetHorizontalAlign (deathText,"center") addEventHandler("onClientPlayerWasted",root, function () guiSetVisible(deadBackground,true) guiSetVisible(deathText,true) setTimer(set,3000,1) end ) function set() guiSetVisible(deadBackground,false) guiSetVisible(deathText,false) end Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now