#Ray casting and Animation

1 messages · Page 1 of 1 (latest)

vague palm
#
  1. Is it better to ray cast on the client or sever but then if you ray cast on the sever you still have to send information on the sever which will takes time anyway no ?
  2. How do games do the animations on the sever and then they show it to the other client(Do they just use fireAllClient or another method)
fallen timber
thin lily
#

If you can safely offload ray-casting to the client, it's better to do so, and by safely, I mean anything that isn't required to run on the server for security reasons.

vague palm
#

thank you

#

you guys

#

but i still have afew qiestion @thin lily im not sure to understand what you mean

#

because if im not mistken a ray cast on the client is easily hackable(if that's even a word)

fallen timber
#

Yeah and they can fly around if they want too!

thin lily
#

It is easily hackable, which is why, if it's essential that it remains unhacked it should be done on the server

vague palm
#

bruh

#

but itought the sever is too slow and its essntial to avoid script in there no ?

fallen timber
#

If its just to handle animations then do it on client

#

Hackers can change their animations to anything they want, can fly around if they want

vague palm
#

ah so what kind of thing we deciede to do on the sver and client

fallen timber
#

If its important then do it on server

#

Like

#

If you have an attack

vague palm
#

like for example if you doing a force thing like in star wars the mechaniocs should be on the sver or the client because we also want user experience no ?

#

btw im a new scripter so thats why im askng these question

fallen timber
#

Thats tough

#

It seems like they handle the actual controlling of objects / players on the client

#

But there is serverside verification

#

Like if u throw someone / something too fast the server will reject the throw and put the item back where it was before u picked it up

vague palm
#

so there should be not to much overload on the client but somekind of verification for things like this ?

fallen timber
#

If its important game mechanic then yes

#

Like if there wasn't any verification in that game I sent

#

Then a hacker can just pick someone up and teleport them into the void

#

And it will work

vague palm
#

yeah make sense thank you a lot i have a clearer idea now appreciated it