Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. Red Dead Redemption 2

      1. PC
      2. Gameplay
      3. Missions
      4. Help & Support
    2. Red Dead Online

      1. Gameplay
      2. Find Lobbies & Outlaws
      3. Help & Support
      4. Frontier Pursuits
    1. Crews & Posses

      1. Recruitment
    2. Events

    1. GTA Online

      1. DLC
      2. Find Lobbies & Players
      3. Guides & Strategies
      4. Vehicles
      5. Content Creator
      6. Help & Support
      7. The Diamond Casino Heist
    2. Grand Theft Auto Series

    3. GTA 6

    4. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    5. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA IV Mods
    6. GTA Chinatown Wars

    7. GTA Vice City Stories

    8. GTA Liberty City Stories

    9. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA SA Mods
    10. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA VC Mods
    11. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA III Mods
    12. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    13. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    3. Featured Mods

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption

    2. Rockstar Games

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Programming
      5. Movies & TV
      6. Music
      7. Sports
      8. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. News

    2. Forum Support

    3. Site Suggestions

julionib

[Q] Create rope object

Recommended Posts

julionib

Someone succeed creating a rope object? Based on decompiled scripts and in the info on native DB i tried using ADD_ROPE method but no rope appears, and when i try to check if the rope exists the .asi script crash

This is the info in Natives DB:

http://www.dev-c.com/nativedb/func/info/e832d760399eb220

Share this post


Link to post
Share on other sites
Fireboyd78

Is it possible the "DOES_ROPE_EXIST" native isn't defined correctly? I'm always skeptical about the usage of pointer parameters.

Share this post


Link to post
Share on other sites
julionib

r* use pointer param too in this method in the decompiled files (xbox and pc version)

one of the problems i have using this is the type of return because in natives.h its defined as Any, so, im not sure what type to use, i tried Integer, int32/64, double ^^, entity, object (.net tries)

this is the code i used to test in a .net script:

Private Function ADD_ROPE(position_x As Double, position_y As Double, position_z As Double,      angle_x As Double, angle_y As Double, angle_z As Double, length As Double,      type As Integer, max_length As Double, min_length As Double, p10 As Double,      p11 As Boolean, p12 As Boolean, p13 As Boolean, p14 As Double, breakable As Boolean,      ByRef p16 As Integer) As integer        Return Native.Function.Call(Of Integer)(Native.Hash.ADD_ROPE, position_x, position_y, position_z,                                                angle_x, angle_y, angle_z,                                                length,                                                type,                                                max_length,                                                min_length,                                                p10,                                                p11,                                                p12,                                                p13,                                                p14,                                                breakable,                                                p16)    End Function    Private Sub keyDown(ByVal sender As Object, ByVal e As KeyEventArgs) Handles MyBase.KeyDown        If e.KeyCode = Keys.D0 Then            bPowersOn = Not bPowersOn            Dim tmpPos As Vector3 = Native.Function.Call(Of Vector3)(Native.Hash.GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS, Game.Player.Character, 0, 2.0, 0)            Dim tmp As Integer            Dim rope As Integer = ADD_ROPE(tmpPos.X, tmpPos.Y, tmpPos.Z, 0, 0, 0, 100, 1, 100, 0.5, 0.5, False, True, True, &H3F800000, 0, tmp)            Native.Function.Call(Native.Hash.ACTIVATE_PHYSICS, rope)            Native.Function.Call(Native.Hash.ROPE_LOAD_TEXTURES)            Dim tmpTimeout As Date = Now            While Not Native.Function.Call(Of Boolean)(Native.Hash._0xF2D0E6A75CC05597) And (Now.Subtract(tmpTimeout).TotalMilliseconds < 1000)                Wait(10)            End While
Edited by julionib

Share this post


Link to post
Share on other sites
MAFINS

I'd appreciate some help on this too.
The rope is not visible/effective for me.

Share this post


Link to post
Share on other sites
julionib

I'd appreciate some help on this too.

The rope is not visible/effective for me.

show your code

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.