Jump to content

#MacTavish

Members
  • Content Count

    22
  • Joined

  • Last visited

Community Reputation

4 Neutral

About #MacTavish

  • Rank
    Civilian
  • Birthday 02/01/1998

Details

  • Occupation
    Soldier-Special Forces

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. @IIYAMAthank you so much, it works good ! Here is the code, maybe you want to see. Thank you ! function shootMissiles() thePilot = getLocalPlayer() theVehicle = getPedOccupiedVehicle(thePilot) if theVehicle and getElementType(theVehicle) == 'vehicle' then theVehicleModel = getElementModel(theVehicle) if theVehicleModel == 519 then local x1, y1, z1 = getPositionFromElementOffset(theVehicle, -3, 3.5, 0) local x2, y2, z2 = getPositionFromElementOffset(theVehicle, 3, 3.5, 0) missileLeft = createProjectile(theVehicle, 19, x1, y1, z1) missileRight = create
  2. Okay, i will try to do it. If it works, i will notify you, thank you
  3. i tried to solve it by using func that you told me. But i couldn't do it, i didn't understood how can i use this exactly ? function shootMissiles() thePilot = getLocalPlayer() theVehicle = getPedOccupiedVehicle(thePilot) if theVehicle and getElementType(theVehicle) == 'vehicle' then theVehicleModel = getElementModel(theVehicle) if theVehicleModel == 519 then local x, y, z = getElementPosition(theVehicle) local rotX, rotY, rotZ = getElementRotation(theVehicle) local matrix = getElementMatrix(theVehicle) local offX = 0 * matrix[1][1] + 1 * ma
  4. Hi all, im trying to add missile launchers on shamal plane right and left wings. I added them and i can fire them, no problem till this point. But there is a problem when i turn the plane 90 degree, missiles overlaps each others. I tried to explain it by image : https://prnt.sc/uknal0 What should i do ? Please help me. function shootMissiles() thePilot = getLocalPlayer() theVehicle = getPedOccupiedVehicle(thePilot) if theVehicle and getElementType(theVehicle) == 'vehicle' then theVehicleModel = getElementModel(theVehicle) if theVehicleModel == 519 then
  5. hi all, i created a script that works for shooting other vehicles with heatseeking rockets by Hunter Helicopter. But i can shoot other vehicles if they are on my screen, so i can shoot other vehicles even they are behind of hunter helicopter and this is unrealistic. I want to make it realistic, so, i want to shoot other vehicles if they are only on Helicopters' perspective even when i don't look at them, here is the script, please help ; function shootProjectile() local vehicle = getPedOccupiedVehicle(localPlayer) if vehicle and getElementModel(vehicle) == 425 then local x, y, z =
  6. If you have this source can u share it with me please im looking for it long time
  7. Hi all, i want to fly with SeaSparrow helicopter flexible as Hunter Helicopter (because Hunter helictoper can flip around itself and move fastly) , so i tried to set Hunters' handling settings on SeaSparrow heli. But it doesn't work (i got any error btw), help please, thanks, here is the script; function getModelHandling( element, property ) if isElement ( element ) and getElementsByType ( element ) == "vehicle" and type ( property ) == "string" then local SparrowID = 447 local modelID = 425 local handlingTable = getModelHandling ( modelID ) local value =
  8. Hi all, i have a question about modelling. I have a vehicle model' dff and txd files. Is it possible to create .col file by using these dff and txd files? If its possible then how? Thank you
  9. Thank you TUT ! This is what i was searching for ! Nice information !
  10. Hi all, firstly happy new year! I want to ask that is there a way to get original txd, dff, col files of original GTA models? Is there a program or function for it? Thank you..
  11. Im really thankful to you Bilal135, you are really helpful and good person ! Thank you
  12. Thank you so much Bilal135, i tried your script but i got debug in 17th line 6th argument (it says got table). I created another script with some help that works really good, here is the script if you want to use ; function shootProjectile() local vehicle = getPedOccupiedVehicle(localPlayer) if vehicle and getElementModel(vehicle) == 425 then local x, y, z = getElementPosition(getLocalPlayer()) local vehicles = getElementsWithinRange(x, y, z, 300, "vehicle") local target = vehicles[1] ~= vehicle and vehicles[1] or vehicles[2] if target then createProjectile(vehicl
  13. hey all, can somebody help me , i want to fire heat-seeking missile on a "target". I can fire heatseeking missile but can't lock it on a "target", please help, thanks function shootProjectile() local hunter = getPedOccupiedVehicle(localPlayer) if hunter and getElementModel(hunter) == 425 then local x, y, z = getElementPosition(hunter) createProjectile(hunter, 20, x, y, z, hedef) local hedef = getElementsWithinRange(x, y, z, 300, "vehicle") end end bindKey( "lshift", "down", shootProjectile) I almost forgot, HAPPY NEW YEAR btw !
  14. function shootProjectile() local vehicle = getPedOccupiedVehicle(localPlayer) if vehicle and getElementModel(vehicle) == 425 then local target = getElementModel(targetvehicle) or nil local x, y, z = getElementPosition(vehicle) createProjectile(vehicle, 20, x, y, z, target) end end bindKey( "lshift", "down", shootProjectile) I scripted this , i can fire heatseeking missile from Hunter but... still can't lock on a target, what should i do.. thanks
  15. Thank you again Bilal, i will try it and i will notify you
×
×
  • Create New...