JasperRieken Posted December 18, 2010 Posted December 18, 2010 I made some peds and i want to give them a weapon but can't get it to work the peds work but cant get them to hold weapons
Castillo Posted December 18, 2010 Posted December 18, 2010 setTimer( giveWeapon, 1000, 1, ped element, 31, 500, true) this gives him a M4. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
botanist Posted December 18, 2010 Posted December 18, 2010 Why in a timer? Handling editor | Modloader
Castillo Posted December 18, 2010 Posted December 18, 2010 when i tryed without a timer it wasn't working San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
JasperRieken Posted December 18, 2010 Author Posted December 18, 2010 Look can you help me add them? this is the script --Script by Jasper function p () local p1=createPed(287,2186.70,-1193.73,1031.79) local p2=createPed(15,2215.24,-1154.21,1025.79) local p3=createPed(0,2195.17,-1172.98,1029.80) local p4=createPed(285,2233.25,-1161.07,25.89) local p5=createPed(285,2233.25,-1158.61,25.89) setElementInterior(p1,15) setElementInterior(p2,15) setElementInterior(p3,15) setPedArmor(p1,100) setPedArmor(p2,100) setPedArmor(p3,100) setPedArmor(p4,100) setPedArmor(p5,100) setElementRotation(p4,0,0,90) setElementRotation(p5,0,0,90) end addEventHandler("onResourceStart", getRootElement(),p) --©2010 By Jasper
Castillo Posted December 19, 2010 Posted December 19, 2010 --Script by Jasper function p () local p1=createPed(287,2186.70,-1193.73,1031.79) local p2=createPed(15,2215.24,-1154.21,1025.79) local p3=createPed(0,2195.17,-1172.98,1029.80) local p4=createPed(285,2233.25,-1161.07,25.89) local p5=createPed(285,2233.25,-1158.61,25.89) setElementInterior(p1,15) setElementInterior(p2,15) setElementInterior(p3,15) setPedArmor(p1,100) setPedArmor(p2,100) setPedArmor(p3,100) setPedArmor(p4,100) setPedArmor(p5,100) setElementRotation(p4,0,0,90) setElementRotation(p5,0,0,90) setTimer( giveWeapon, 1000, 1, p1, 31, 500, true) setTimer( giveWeapon, 1000, 1, p2, 31, 500, true) setTimer( giveWeapon, 1000, 1, p3, 31, 500, true) setTimer( giveWeapon, 1000, 1, p4, 31, 500, true) setTimer( giveWeapon, 1000, 1, p5, 31, 500, true) end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()),p) --©2010 By Jasper San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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