supergonkas Posted May 13, 2013 Share Posted May 13, 2013 I am working on a script that uses objects as hats wih bone_attach as dependecy when i put some hats and put the camera clode to it they jut disapear or become inviseble what is the command that turns that off or changes IDK the distance Link to comment
supergonkas Posted May 13, 2013 Author Share Posted May 13, 2013 i really need help with this ,pls anyone? Link to comment
Moderators IIYAMA Posted May 13, 2013 Moderators Share Posted May 13, 2013 Maybe you should disable the coll. (so the camera won't get stuck) Link to comment
supergonkas Posted May 13, 2013 Author Share Posted May 13, 2013 what is the coll ?,or you meant COL ? Link to comment
Moderators IIYAMA Posted May 13, 2013 Moderators Share Posted May 13, 2013 ye I mean col. ( I call it coll.) https://wiki.multitheftauto.com/wiki/Se ... onsEnabled -- server/client https://wiki.multitheftauto.com/wiki/Se ... idableWith -- client Link to comment
supergonkas Posted May 13, 2013 Author Share Posted May 13, 2013 That dint solved the problem as you can see in the pics below in the SS it can be seen the light but not the object how can that be solved? Link to comment
Moderators IIYAMA Posted May 13, 2013 Moderators Share Posted May 13, 2013 You also tried it without put it at your head? and what happens when you change it to a low lod object? createObject ( id, x, y, z, 0, 0, 0, true) -- low lod Link to comment
supergonkas Posted May 13, 2013 Author Share Posted May 13, 2013 can you say me an object with low LOD pls so i can try ? Link to comment
denny199 Posted May 13, 2013 Share Posted May 13, 2013 Show the part of the code what you are using. Link to comment
Moderators IIYAMA Posted May 13, 2013 Moderators Share Posted May 13, 2013 You can set all objects to low lod, (as far I know) You only have to fill in the correct syntax: not low lod, but does have col: createObject ( id, x, y, z, 0, 0, 0, false) Is low lod, but does not have a col: createObject ( id, x, y, z, 0, 0, 0, true) Link to comment
supergonkas Posted May 13, 2013 Author Share Posted May 13, 2013 so what i do to test ? if it is from the object ? Link to comment
denny199 Posted May 13, 2013 Share Posted May 13, 2013 Show your part of the code, so we can edit it Link to comment
supergonkas Posted May 13, 2013 Author Share Posted May 13, 2013 (edited) (i removed the script code) Edited May 13, 2013 by Guest Link to comment
Moderators IIYAMA Posted May 13, 2013 Moderators Share Posted May 13, 2013 You have this problem with all objects? ( not much wrong with the code, only not really build on performance ) Some other things I did noticed about your code. -- you said server side. addEventHandler("onClientResourceStart", getRootElement(),--onResourceStart function () setInteriorSoundsEnabled(false) end ); -- you only have to index this one time: (local value is faster than re-index global tables for every single thing.) local myObject = object[source] -- try to use "elseif" if a > 1 then -- if elseif a < 1 then -- if not "if a > 1 then", then check again. end Link to comment
supergonkas Posted May 13, 2013 Author Share Posted May 13, 2013 the interior sounds was a part that isnt related to the mod it self but that is only with that object i put SS so how i can i fix it? (IDK if you tested the script by yourself ,becouse only by testing you can see the "object bug by yourself") Link to comment
supergonkas Posted May 13, 2013 Author Share Posted May 13, 2013 i really need help with this script Link to comment
Moderators IIYAMA Posted May 13, 2013 Moderators Share Posted May 13, 2013 I did test it, and yes. It disappears. I also checked if it had something to do with the ped. (with runcode) But no it isn't because of the ped, it is probably because after you scaled the object it got bugged. It have something to do with the distance from your camera to the object. But also the direction of the camera. and no you can't fix it, it is a gta san bug or maybe mta object scale bug. I will recommend you to remove your script from the forum. (else little kids will go play with it) Sorry that it can't be fixed. (I deleted the script from my pc) Link to comment
supergonkas Posted May 13, 2013 Author Share Posted May 13, 2013 ok thanks for the help thu 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