Jump to content

car minigun


Monty

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...