lolcatsareawesome Posted July 15, 2013 Posted July 15, 2013 Hi there, I want to know if it's possible to set a object visible from far? A function for that maybe? Thanks.
lolcatsareawesome Posted July 15, 2013 Author Posted July 15, 2013 Explain me "object visible from far". If i create an object in a place and I go very very far the object disappears.
Castillo Posted July 15, 2013 Posted July 15, 2013 You're talking about draw distance, you can set the draw distance of everything with this function: setFarClipDistance
lolcatsareawesome Posted July 15, 2013 Author Posted July 15, 2013 You're talking about draw distance, you can set the draw distance of everything with this function: setFarClipDistance Well, thanks for that function. It's very beautiful to see the GTA world like that but It doesn't work for my object. Check out the screenshot. As you can see, I've a object but he is like in alpha or smthg like that because i'm too far. I can see the GTA world very well but not the object. Idea?
Castillo Posted July 15, 2013 Posted July 15, 2013 I'm not really sure, but maybe this one: engineSetModelLODDistance *CLIENT SIDE ONLY*
lolcatsareawesome Posted July 15, 2013 Author Posted July 15, 2013 I'm not really sure, but maybe this one: engineSetModelLODDistance *CLIENT SIDE ONLY* Hmm still not working -- creating world for i, object in ipairs(room.objects)do local obj = createObject(object.model, object.x, object.y, object.z, object.rx, object.ry, object.rz) engineSetModelLODDistance (object.model, 170) setElementDimension(obj, room.id) table.insert(Objects, obj) end
iMr.3a[Z]eF Posted July 15, 2013 Posted July 15, 2013 I'm not really sure, but maybe this one: engineSetModelLODDistance *CLIENT SIDE ONLY* Hmm still not working -- creating world for i, object in ipairs(room.objects)do local obj = createObject(object.model, object.x, object.y, object.z, object.rx, object.ry, object.rz) engineSetModelLODDistance (object.model, 170) setElementDimension(obj, room.id) table.insert(Objects, obj) end What's the object name? i mean like this local theObjectName createObject(...)
iMr.3a[Z]eF Posted July 15, 2013 Posted July 15, 2013 because the object name is very different in these functions -- creating world for i, object in ipairs(room.objects)do local obj = createObject(object.model, object.x, object.y, object.z, object.rx, object.ry, object.rz) engineSetModelLODDistance (object.model, 170) setElementDimension(obj, room.id) table.insert(Objects, obj) end
Castillo Posted July 15, 2013 Posted July 15, 2013 Oh dear... why do you even post without knowing anything about it? engineSetModelLODDistance uses a model, not an element.
lolcatsareawesome Posted July 15, 2013 Author Posted July 15, 2013 You did it client side? Yes it's client-side. Edit: And the last argument of the createObject? What it means? isLowLOD: A bool value specifying if the object will be low LOD. A low LOD object has no collision and a longer draw distance.
lolcatsareawesome Posted July 15, 2013 Author Posted July 15, 2013 Let them all 0, 0, 0 What are you talking about??
Castillo Posted July 15, 2013 Posted July 15, 2013 He has no idea about what he's talking about, he's just trying to increase his post count.
lolcatsareawesome Posted July 15, 2013 Author Posted July 15, 2013 (edited) Okay it works now. For peoples who have the same problem, just set true the last argument of the createObject. Thanks Castillo for your help and 6ArHxiMr'3a[Z]eF for your useless posts. Edited July 15, 2013 by Guest
lolcatsareawesome Posted July 15, 2013 Author Posted July 15, 2013 Well, I didn't notice that argument remove the colision. Solution please? x)
Castillo Posted July 15, 2013 Posted July 15, 2013 I'm not sure, maybe try removing low lod when the element streams in?
denny199 Posted July 15, 2013 Posted July 15, 2013 Disable the low-lod when you are nearby? https://wiki.multitheftauto.com/wiki/On ... ntStreamIn https://wiki.multitheftauto.com/wiki/On ... tStreamOut https://wiki.multitheftauto.com/wiki/SetLowLODElement edit: oh already said ;p
50p Posted July 15, 2013 Posted July 15, 2013 Simply create 2 objects in the same place. One with isLowLOD set to true and another one set to false.
lolcatsareawesome Posted July 15, 2013 Author Posted July 15, 2013 Simply create 2 objects in the same place. One with isLowLOD set to true and another one set to false. Thanks !
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