Monty Posted September 4, 2012 Share Posted September 4, 2012 ehi ho trovato questo script sulla community... il minigun però non sapa, è solo un oggetto attaccato, come faccio a farlo sparare? function turret( source, commandName ) local x, y, z = getElementPosition( source ) local patriotgun1 = createObject(2985, 0, 0, 0) local patriotgun2 = createObject(2985, 0, 0, 0) local patriottank = createVehicle(464, 0, 0, 0) local patriot1 = createVehicle ( 470,x, y, z ) local c4 = createObject (1654, 0, 0, 0, 0) local c42 = createObject (1654, 0, 0, 0, 0) local c43 = createObject (1654, 0, 0, 0, 0) attachElements (patriottank, patriotgun1, -0, 0,1, 0,0,-90) attachElements (c4, patriot1, 0, 0, 0.35, -90) attachElements (c42, patriot1, 0.3, 0, 0, -90, 90, 0 ) attachElements (c43, patriot1, -0.3, 0, 0, -90, -90, 0) setElementAlpha(patriottank, 0) --setElementAlpha(patriotgun1, 0) attachElements( patriotgun1, patriot1, 0, 0, 0.4, 0, 0, 90 ) setVehicleDamageProof ( patriot1, true ) setVehicleDamageProof ( patriottank, true ) warpPedIntoVehicle(source, patriot1) end addCommandHandler( "humvee", turret ) --minigun1 minigun1 = createObject(2985, 97,2492, 15.6,0,0,180) miniggun1 = createVehicle(464, 0, 0, 0) setVehicleDamageProof ( miniggun1, true ) setElementAlpha(miniggun1, 0) attachElements( miniggun1, minigun1, 0, 0, 1, 0, 0, -90 ) Link to comment
HunT Posted September 4, 2012 Share Posted September 4, 2012 Devi creare un projectile con createProjectile. Al limite dopo ti faccio un esempio,oppure te la finisco io la script. Link to comment
☻ᶠᶸᶜᵏᵧₒᵤ☻ Posted September 5, 2012 Share Posted September 5, 2012 esiste già lo script che spara sulla community si chiama patriotminigun DOWNLOAD: https://community.multitheftauto.com/index.php?p=resources&s=details&id=3830 Link to comment
xShocKz Posted September 6, 2012 Share Posted September 6, 2012 esiste già lo script che spara sulla community si chiama patriotminigun DOWNLOAD: https://community.multitheftauto.com/index.php?p=resources&s=details&id=3830 è lo stesso ma non funziona, aggiunge solo il minigun. Link to comment
☻ᶠᶸᶜᵏᵧₒᵤ☻ Posted September 6, 2012 Share Posted September 6, 2012 nn è vero nel mio server funziona ... e anche bene!!!! Mi fa disintegrare gli zombies!!!!! 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