Jump to content

Search the Community

Showing results for tags 'ball'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Gang


Location


Occupation


Interests

Found 1 result

  1. 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!
×
×
  • Create New...