HUNGRY:3 Posted July 11, 2015 Share Posted July 11, 2015 (edited) Hello I'm using dayz mod and i set my skin to id like 101 But after 1 min it disappears any body know how to save it ? Code function bitchwork(player) setElementModel(player,101) end addCommandHandler("fkawork", bitchwork) EDIT : PROBLEM FIXED Edited July 12, 2015 by Guest Link to comment
Calculador Posted July 12, 2015 Share Posted July 12, 2015 Sure is intervening the mod Dayz, but i dont have idea. Link to comment
#RooTs Posted July 12, 2015 Share Posted July 12, 2015 why not try ??? function bitchwork () setPedSkin ( source, 101 ) end addCommandHandler ( "fkawork" , bitchwork ) or some function is removing his command. search for removeCommandHandler Link to comment
xXMADEXx Posted July 12, 2015 Share Posted July 12, 2015 why not try ??? function bitchwork () setPedSkin ( source, 101 ) end addCommandHandler ( "fkawork" , bitchwork ) or some function is removing his command. search for removeCommandHandler Did you even read the problem? He said that after a minute it resets to whatever skin it was. Sorry HUNGRY:3 but I can't answer this, I don't really have any experience with scripting in DayZ. Maybe there is an element data that the DayZ gamemode is using for skin. Try using this and search for a skin ID that it may be resetting to: local p = getPlayerFromName ( "your nick" ); for index, var in pairs ( getAllElementData ( p ) ) do outputChatBox ( tostring ( index )..": "..tostring ( var ) ) end Link to comment
HUNGRY:3 Posted July 12, 2015 Author Share Posted July 12, 2015 why not try ??? function bitchwork () setPedSkin ( source, 101 ) end addCommandHandler ( "fkawork" , bitchwork ) or some function is removing his command. search for removeCommandHandler Did you even read the problem? He said that after a minute it resets to whatever skin it was. Sorry HUNGRY:3 but I can't answer this, I don't really have any experience with scripting in DayZ. Maybe there is an element data that the DayZ gamemode is using for skin. Try using this and search for a skin ID that it may be resetting to: local p = getPlayerFromName ( "your nick" ); for index, var in pairs ( getAllElementData ( p ) ) do outputChatBox ( tostring ( index )..": "..tostring ( var ) ) end Oh okay thanks 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