Jump to content

How to attach Missile to Packer? Как приделать ракеты к Пакеру?


Military Guy

Recommended Posts

Hi. Im need attach Missiles to Packer moving part.

How to make it?

 

Привет всем, я хочу приделать ракеты к двигающейся части Пакера и стрелять ими.

Как это можно сделать?

Link to post
function c(thePlayer, commandName)
local x, y, z = getElementPosition(thePlayer)
local vehicle = createVehicle(411, x, y+3, z+2)
local missile = createObject(3790, x, y, z)
attachElements(missile, vehicle, 0, 0, 3)
end
addCommandHandler("missile", c)

 

Link to post
43 minutes ago, Hydra said:

function c(thePlayer, commandName)
local x, y, z = getElementPosition(thePlayer)
local vehicle = createVehicle(411, x, y+3, z+2)
local missile = createObject(3790, x, y, z)
attachElements(missile, vehicle, 0, 0, 3)
end
addCommandHandler("missile", c)

 

How to shoot?

Link to post

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...