3 | 3 | This is a step-by-step guide to make a class XYZ synchronisable. |
4 | 4 | * Synchronisable classes are registered to the network engine to be transfered/synched between client and server. |
5 | 5 | * If you want your class to get transfered, you have to ''register'' every important variable to the network (e.g. position, speed, health, ...). But only register variables that are absolutely neccessary (e.g. no local variables and '''no temporary copies/variables'''). |
6 | 6 | * The default transfer ''direction'' of variables (and objects) is from server to the clients only. If you want to change this for a certain variable (and object), call REGISTERDATA_WITHDIR(varname, direction) or REGISTERSTRING_WITHDIR(stringname, direction) instead of REGISTERDATA or REGISTERSTRING.[[br]] |