Search the Community
Showing results for tags 'shoot'.
-
I have a question, I would like to know if it is possible to make a shot effect, it means that when I hold the M4, it shoots and you can see where these bullets are falling and at what speed, and I would like to recall these bullets. If it is not known what is going on, I did the "M1" weapon model and I would like to make this model as a new weapon, and if the player was holding this M1 then it would have to shoot and the bullets would fall out of the weapon. At the beginning I was thinking about the "CreateWeapon" function but it is possible that there is another option because on average I know this function and if there was any other option it would be great
-
Hello! I have an issue with the ped shooting. I created a ped with a weapon but when i make him shooting, he shoots but the bullet goes through my body and goes through everything. It does not hurt.But when he only gets a melee weapon it works normally. What's the problem?
-
Hi guys, I'm trying to learn how to do a resource to hold a ball when the player collides, and then click to shoot it in the current camera direction. Im a little lost , I searched and tried with moveObejct but the result was too badly... Here some portions of code: ball = createObject(1598, 1347.8164, 2127.0234, 10.3, 300, 360, 300, false) attachElements ( ball, player, 0, 0.5, -0.75 ) local rotz = tonumber(getPedRotation(player)) local xt,yt,zt = getElementPosition(player) detachElements(ball, player) xt = xt + (math.cos(math.rad(rotz+90)) * 1.2) yt = yt + (math.sin(math.rad(rotz+90)) * 1.2) moveObject(ball, 2500, xt, yt, zt, math.random(10, 90), math.random(10, 90), math.random(10, 90)) If you can help me with something or give me a hint, I will be grateful!