Jump to content

processLineOfSight issue


J.S.

Recommended Posts

Ever since I updated MTA, I've been getting the following error when using processLineOfSight:

"Bad argument @ 'processLineOfSight' [Expected entity at argument 15, got object]"

Argument 15 in the script is 'localObject', which is a pre-existing client-side object which is created in the same resource (and the same script) that processLineOfSight is called in. If I set it to nil it no longer gives me the error, but I can't have it as nil because that messes everything up. It has to be localObject.

I know this probably sounds like a ridiculous issue and that's because it is. I don't understand why it's not accepting an object when an object in itself is an entity and it's what the argument is supposed to be there for. Any ideas?

EDIT: For some reason it doesn't happen inside interiors though. Just outdoors.

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...