Jump to content

processLineOfSight issue


J.S.

Recommended Posts

Posted

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.

Posted
Weird that was suppose to be fixed in the newer versions of mta.

http://bugs.multitheftauto.com/view.php?id=7544&nbn=1

When ccw gets on irc show him that link I gave you and tell him you are still experiencing that problem.

Alright, thanks mate. I posted on the mantis report with my version number. Good to know it's just an MTA issue and I didn't mess something up massively in the script.

Posted
Read my edit, my mistake ^ it should be fixed next version.

Hm, alright. I suppose I'll just downgrade back for the time being then

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