thegunnysgt 1 Posted May 19, 2008 How can I create something using createvehiclelocal for all players. If possible I want to create something that will be moved, but not studder or skip during the move. I can create it local for me and it works smooth as ever. When I'm done moving it I then delete the local unit and re-create it simply using the createvehicle for the server when done. I want to try to minimize lag and studder, is it possible to do this. To create something for all players locally and to make it smooth. I'd prefer for all players to see the object and it be without lag or studder, but if I have to. I'll deal with the lag and studder. Share this post Link to post Share on other sites
UNN 0 Posted May 19, 2008 createvehiclelocal by definition, will only work for a single player. Plus, a certain amount of delay is to be expected, if you’re trying to communicate across a MP network. One thing to consider though, is to avoid using class Static. This has an inherent delay in MP. Share this post Link to post Share on other sites
rocket 9 Posted May 19, 2008 I guess you could create the local unit, and use markers or other objects as reference points to move the object. Markers are published to all clients, however their update speed is not necessarily super-fast. You could run script locally that checks the location of your targeted object (such as another vehicle or marker) and then use setpos on the local object. You would want to update the location using setpos at least 10 times a second to get true, no-jerky movement. Not sure how well this would work for performance, but it could work quite well. I use createvehiclelocal quite alot in my own missions for dedicated servers to achieve similar goals, and the end result can be great. But you have to use any high-intensity, regulary updating, script with great care. Share this post Link to post Share on other sites