Jump to content

Record and rewind player movements [VIDEO] added


pro-mos

Recommended Posts

Posted (edited)

i want to get the player moves, and when he hits [ key, he goes backward, just like going back in time.

this is what i have so far

not working as expected tho

UPDATE: deleted not working code

Edited by Guest
Posted

cant believe that i solved it! its actually working!

i used element data instead of tables.

now i can go backward and undo my moves !

Hell yeah !

Posted

The question is: can i use onClientRender event to store player movements instead of a timer of 50 ms, or it will take much resources and lagg on weak PC's?

anyway nevermind, apparently im writing to myself

Posted

element data and table are the same things, however element data is synced on both client and server. if you want to store movements you'll want to store them in a table instead, and no i don't think it'd lag much if you set a limit for rewind time according to movements for example if it shows only 30 seconds back, it wouldn't lag much i guess, never tried something like that before though

Posted
element data and table are the same things, however element data is synced on both client and server. if you want to store movements you'll want to store them in a table instead, and no i don't think it'd lag much if you set a limit for rewind time according to movements for example if it shows only 30 seconds back, it wouldn't lag much i guess, never tried something like that before though

yeah i did use tables, and thanks for the idea

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...