Skip to content

Problem with altering players #2185

Answered by bartico6
LuanIllogical asked this question in Q&A
Discussion options

You must be logged in to vote

Modifying the player's data on the server doesn't mean this data is propagated to players. On top of editing their health you'll also need to send this data to those players on your own via a health update packet. Note that this will require SSC.

Additionally, since you're editing variables simulated client-side here, please note that due to the game's client-sided nature, locking their health to 100 will not prevent them from dying (as the client simulates its own health and damage events) if they take >100 damage between your health updates.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@LuanIllogical
Comment options

Answer selected by LuanIllogical
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants