daffabahy Posted February 20, 2016 Share Posted February 20, 2016 elseif currentWeaponID == weapID1 then setElementID(player, "elementWeaponBack[source]") detachElementFromBone(elementWeaponBack[source]) destroyElement(elementWeaponBack[source]) elementWeaponBack[source] = false end end i have some small problem,Can you help me fix that? [12:59:01] WARNING: [DayZ-MTA]/DayZ/survivorSystem.lua:491: Bad argument @ 'dest royElement' [Expected element at argument 1, got boolean] Link to comment
Seba500PLK Posted April 8, 2016 Share Posted April 8, 2016 elseif currentWeaponID == weapID1 then if elementWeaponBack[source] then setElementID(player, "elementWeaponBack[source]") detachElementFromBone(elementWeaponBack[source]) destroyElement(elementWeaponBack[source]) elementWeaponBack[source] = false end end end Link to comment
Seba500PLK Posted April 8, 2016 Share Posted April 8, 2016 elseif currentWeaponID == weapID1 then if elementWeaponBack[source] then setElementID(player, "elementWeaponBack[source]") detachElementFromBone(elementWeaponBack[source]) destroyElement(elementWeaponBack[source]) elementWeaponBack[source] = false end end 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