J.S. Posted April 17, 2013 Share Posted April 17, 2013 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
Moderators IIYAMA Posted April 17, 2013 Moderators Share Posted April 17, 2013 Did you tried it with player's or vehicle's? btw tried a serverside object? Link to comment
OGF Posted April 17, 2013 Share Posted April 17, 2013 (edited) http://bugs.multitheftauto.com/view.php?id=7544&nbn=1 EDIT : ignore what I said, that bug will be fixed in 1.3.2 Edited April 17, 2013 by Guest Link to comment
J.S. Posted April 17, 2013 Author Share Posted April 17, 2013 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. Link to comment
OGF Posted April 17, 2013 Share Posted April 17, 2013 Read my edit, my mistake ^ it should be fixed next version. Link to comment
J.S. Posted April 17, 2013 Author Share Posted April 17, 2013 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 Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now