MisterZ Posted June 26, 2015 Share Posted June 26, 2015 Hola, queria saber como se puede editar el alcance de un arma osea.. alargarle la distancia de alcance ah una M4 Link to comment
Tomas Posted June 26, 2015 Share Posted June 26, 2015 setWeaponProperty("M4", "pro", "weapon_range", 1000) Link to comment
MisterZ Posted June 26, 2015 Author Share Posted June 26, 2015 setWeaponProperty("M4", "pro", "weapon_range", 1000) Gracias, y para mas o menos distancia edito edito el: 1000 ?. Link to comment
Tomas Posted June 26, 2015 Share Posted June 26, 2015 setWeaponProperty("M4", "pro", "weapon_range", 1000) Gracias, y para mas o menos distancia edito edito el: 1000 ?. Así es. Link to comment
MisterZ Posted June 26, 2015 Author Share Posted June 26, 2015 setWeaponProperty("M4", "pro", "weapon_range", 1000) Gracias, y para mas o menos distancia edito edito el: 1000 ?. Así es. Gracias Tomas!, lo probare si sirve te aviso. Link to comment
MisterZ Posted July 21, 2015 Author Share Posted July 21, 2015 No funciona lo hice de todas las formas que se me ocurren y no anda Mi codigo. local s = {"pro","std","poor"} addEventHandler("onPlayerJoin", resourceRoot, function() for _, sk in ipairs(s) do setWeaponProperty(28, sk, "weapon_range", 4000) setWeaponProperty(29, sk, "weapon_range", 4000) setWeaponProperty(30, sk, "weapon_range", 4000) setWeaponProperty(31, sk, "weapon_range", 4000) setWeaponProperty(32, sk, "weapon_range", 4000) setWeaponProperty(33, sk, "weapon_range", 4000) setWeaponProperty(34, sk, "weapon_range", 4000) end end) Link to comment
Sasu Posted July 21, 2015 Share Posted July 21, 2015 local s = {"pro","std","poor"} addEventHandler("onResourceStart", resourceRoot, function() for _, sk in ipairs(s) do setWeaponProperty(28, sk, "weapon_range", 4000) setWeaponProperty(29, sk, "weapon_range", 4000) setWeaponProperty(30, sk, "weapon_range", 4000) setWeaponProperty(31, sk, "weapon_range", 4000) setWeaponProperty(32, sk, "weapon_range", 4000) setWeaponProperty(33, sk, "weapon_range", 4000) setWeaponProperty(34, sk, "weapon_range", 4000) end end) Link to comment
MisterZ Posted July 21, 2015 Author Share Posted July 21, 2015 local s = {"pro","std","poor"} addEventHandler("onResourceStart", resourceRoot, function() for _, sk in ipairs(s) do setWeaponProperty(28, sk, "weapon_range", 4000) setWeaponProperty(29, sk, "weapon_range", 4000) setWeaponProperty(30, sk, "weapon_range", 4000) setWeaponProperty(31, sk, "weapon_range", 4000) setWeaponProperty(32, sk, "weapon_range", 4000) setWeaponProperty(33, sk, "weapon_range", 4000) setWeaponProperty(34, sk, "weapon_range", 4000) end end) Nada Link to comment
Sasu Posted July 21, 2015 Share Posted July 21, 2015 Al parecer, el máximo valor que se le puede otorgar es 350. Lo comprobé ejecutando un mini-código que hize en el runcode: i = 0 repeat i = i+1 test = setWeaponProperty(28, "pro", "weapon_range", i) outputChatBox(tostring(test and i), root) until not test Link to comment
MisterZ Posted July 21, 2015 Author Share Posted July 21, 2015 Al parecer, el máximo valor que se le puede otorgar es 350. Lo comprobé ejecutando un mini-código que hize en el runcode: i = 0 repeat i = i+1 test = setWeaponProperty(28, "pro", "weapon_range", i) outputChatBox(tostring(test and i), root) until not test *-* Gracias sasu!!! FUNCIONA!!! Link to comment
Recommended Posts