Jump to content

Getting caught in the rain


AMARANT

Recommended Posts

Hello there. How can I check that a player got caught in the rain? I know I can easily check the weather to see if it rains. But I want to do it more accurately so the player could seek shelter from the rain. For example, if you stand under the bridge while raining then my script won't have any effect. Thanks in advance.

Link to comment
  • 3 years later...

@Dretax no, rain actually sucks in GTA:SA. I can easily recognize it as long dx lines on your 2D screen, especially when you set the rain level into a great level. Anyway, using processLineOfSight function will allow you to check whether or not you got a bridge above you and if returned true this means that rain can't reach you because the bridge is above not because the function checked if rain can reaxh you or not.

Edited by SuperCroz
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...