Actimel Posted June 25, 2016 Share Posted June 25, 2016 Hello everyone i want ask about backpack position because i add new backpack and when it wears it looks like inverted If someone knows please tell me where to edit Screenshot:http://prntscr.com/bl2bad Link to comment
1LoL1 Posted June 26, 2016 Share Posted June 26, 2016 survivorsystem.lua function: backPackBack Link to comment
Actimel Posted June 26, 2016 Author Share Posted June 26, 2016 survivorsystem.luafunction: backPackBack I need like change position just because it wears wrong side http://prntscr.com/blcpve look at this screen shot and u will see it Link to comment
stefutz101 Posted June 26, 2016 Share Posted June 26, 2016 We can't guess what's the backpack position or id , you must find that line which create that object and change the object rotation . Link to comment
Actimel Posted June 26, 2016 Author Share Posted June 26, 2016 We can't guess what's the backpack position or id , you must find that line which create that object and change the object rotation . Thats the line of backpack object elementBackpack[source] = createObject(363, x, y, z ,) elseif newValue == 8 then Link to comment
stefutz101 Posted June 26, 2016 Share Posted June 26, 2016 Are you sure you copied full line ? createObject(363, x, y, z ,) after that last "," must be other 3 coords. Link to comment
Actimel Posted June 26, 2016 Author Share Posted June 26, 2016 Are you sure you copied full line ?createObject(363, x, y, z ,) after that last "," must be other 3 coords. I will give all code of backpack create object if newValue == 12 then elementBackpack[source] = createObject(3026, x, y, z) elseif newValue == 16 then elementBackpack[source] = createObject(1248, x, y, z) elseif newValue == 26 then elementBackpack[source] = createObject(1575, x, y, z) elseif newValue == 36 then elementBackpack[source] = createObject(1252, x, y, z) elseif newValue == 40 then elementBackpack[source] = createObject(364, x, y, z) elseif newValue == 52 then elementBackpack[source] = createObject(1636, x, y, z) elseif newValue == 64 then elementBackpack[source] = createObject(363, x, y, z ,) elseif newValue == 8 then return end if newValue == 26 then attachElementToBone(elementBackpack[source], source, 3, 0, -0.16, 0.05, 270, 0, 180) else attachElementToBone(elementBackpack[source], source, 3, 0, -0.225, 0.05, 90, 0, 0) end end end Link to comment
stefutz101 Posted June 26, 2016 Share Posted June 26, 2016 How many slots your backpack have ? If it have 26 you must change here : if newValue == 26 then attachElementToBone(elementBackpack[source], source, 3, 0, -0.16, 0.05, 270, 0, 180) else attachElementToBone(elementBackpack[source], source, 3, 0, -0.225, 0.05, 90, 0, 0) end else here if newValue == 26 then attachElementToBone(elementBackpack[source], source, 3, 0, -0.16, 0.05, 270, 0, 180) else attachElementToBone(elementBackpack[source], source, 3, 0, -0.225, 0.05, 90, 0, 0) end Try to change that numbers with : 0 , 90 , 180 , 270 . Like 90,0,90 or 90,0,180 or 90,0,270 ,etc Link to comment
Actimel Posted June 26, 2016 Author Share Posted June 26, 2016 How many slots your backpack have ?If it have 26 you must change here : if newValue == 26 then attachElementToBone(elementBackpack[source], source, 3, 0, -0.16, 0.05, 270, 0, 180) else attachElementToBone(elementBackpack[source], source, 3, 0, -0.225, 0.05, 90, 0, 0) end else here if newValue == 26 then attachElementToBone(elementBackpack[source], source, 3, 0, -0.16, 0.05, 270, 0, 180) else attachElementToBone(elementBackpack[source], source, 3, 0, -0.225, 0.05, 90, 0, 0) end Try to change that numbers with : 0 , 90 , 180 , 270 . Like 90,0,90 or 90,0,180 or 90,0,270 ,etc Now it works perfect but now another like coyote has same problem when i change maybe its just cuz of that backpack mod? Link to comment
stefutz101 Posted June 27, 2016 Share Posted June 27, 2016 How many slots your new backpack have ? Your coyote have 36 slots ? Link to comment
Actimel Posted June 27, 2016 Author Share Posted June 27, 2016 How many slots your new backpack have ? Your coyote have 36 slots ? yes but i add 3 more backpacks and 2 of them work perfect but last one not the biggest one 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