[Include] MoveObject Position Simulator - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (
https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] MoveObject Position Simulator (
/showthread.php?tid=589050)
MoveObject Position Simulator -
Crayder - 14.09.2015
MoveObject Position Simulator!
__________________________________________________ __________________________________________________
All you need to do to make it work it include it after a_samp. It's that simple. The functions (MoveObject, GetObjectPos, and GetObjectRot) are hooked and ready to use. The position and rotations returned are very precise estimates of where the object should be. Do not be fooled in-game if it seems to be off, object movements are client sided and laggy already (not due to this include). The positions and rotations are only estimated when the object is moving so anything else will be unaffected.
__________________________________________________ __________________________________________________
Download here!
Re: MoveObject Position Simulator -
codectile - 15.09.2015
Calculation are done server sided. Objects are placed client sided, I guess.
Re: MoveObject Position Simulator -
Crayder - 15.09.2015
Yes, but try rotation. It returns the rotation that the object is going to instead of it's current. This returns an estimate. The topic may have been misleading.
Re: MoveObject Position Simulator -
Pottus - 17.09.2015
One think you need to add is setting the objects position before it is moved again. On some clients it might still be moving and get badly out of sync so when an object stops moving set the position of that object to make sure it is synced.
Re: MoveObject Position Simulator -
Crayder - 17.09.2015
Well, this is just a wrapper. It still calls the normal MoveObject. It's not meant to improve the movement or anything. It's just to give a good rotation return since the GetObjectRot wouldn't return the correct rotations when objects are moving.
Re: MoveObject Position Simulator -
IDarkness - 17.09.2015
Nice one for debugging my gates awesome