Military Guy Posted November 6, 2020 Share Posted November 6, 2020 Hi. Im need attach Missiles to Packer moving part. How to make it? Привет всем, я хочу приделать ракеты к двигающейся части Пакера и стрелять ими. Как это можно сделать? Link to comment
Administrators Tut Posted November 6, 2020 Administrators Share Posted November 6, 2020 Thread moved to the Scripting forum for best results. Scripting Tutorials forum is for user-made tutorials aimed to teach others. 1 Link to comment
Hydra Posted November 6, 2020 Share Posted November 6, 2020 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 comment
Military Guy Posted November 6, 2020 Author Share Posted November 6, 2020 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 comment
Hydra Posted November 6, 2020 Share Posted November 6, 2020 Use createProjectile() function if you want to shoot. 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