Jump to content

» «

Detect player touching world / buildings in scripthook

No replies to this topic
  • comomomo

    Player Hater

  • New Members
  • Joined: 29 Jan 2017
  • United-States


Posted 29 January 2017 - 05:44 AM

Hi all,

I'm currently working on a mod for GTA IV that would let you run on walls. I've got my animations prepped and in engine to make it happen but I'm struggling to detect collisions with the world. I've tried using the Player.Character.isTouching(___Object___) for each object in the scene but it doesn't seem to effectively pick up buildings. Does anyone know of a good way to do this? Is it impossible within scripthook? Ideally I would be able to sense which side of the player is touching a wall and play the left or right animations corresponding to each side, then break the animation when the player is no longer touching a surface. This is my first mod for GTA IV so I'm pretty unfamiliar with what's possible. 

Thanks for reading.

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users