_Dark_ Posted July 27, 2012 Share Posted July 27, 2012 Hi. How I can create same object in different dimensions? For example, I need to create object in dimensions from 1 to 50. But, one element can be visible only in one dimension, so I'll have to create 50 objects. Of course, I can create one object, and update it dimension for specific player on a client-side, but is there another solution? Link to comment
scratcher911 Posted July 27, 2012 Share Posted July 27, 2012 for i = 1, 40 do object = createObject(111, 123, 123, 123) setElementDimension( object, i ) end Maybe this ? Link to comment
_Dark_ Posted July 27, 2012 Author Share Posted July 27, 2012 Maybe this ? so I'll have to create 50 objects. is there another solution? Link to comment
_Dark_ Posted July 27, 2012 Author Share Posted July 27, 2012 (edited) And, if I need create 5 different objects in 50 dimensions, I must create 250 same objects. Edited July 28, 2012 by Guest Link to comment
DiSaMe Posted July 27, 2012 Share Posted July 27, 2012 What's wrong with updating dimension client-side? Link to comment
_Dark_ Posted July 27, 2012 Author Share Posted July 27, 2012 What's wrong with updating dimension client-side? I think that this isn't quite right. It seems that I need to loop for all objects and change their dimensions to player dimension, when player dimension is changing. Link to comment
_Dark_ Posted July 27, 2012 Author Share Posted July 27, 2012 I think, this will be useful, if MTA Team include interior and dimension, for example, -1, that means visible in all. Edit: Forgot to say: I solved the problem by writing simple streamer, which update objects dimensions client-side when the ped dimension changed. 1 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