Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
FILE: lua/client/ZedCacheTest.lua
In the code above, when the event "OnWeaponHitCharacter" is triggered, we send a server command with the zombie's ID that we hit, the weapon being used, and how much damage is being done. The server then will relay all of this data to all connected players.
When a player receives the "ZedShare/Test" Server command, they use the provided Zombie's Online ID to retrieve their object from the cache and you can then perform any action as necessary.
FILE: lua/server/ZedCacheServer.lua
The above is a simply relay for the server to send the command to all connected players.
The server DOES NOT build a zombie cache, only clients. Zombies do not exist like that on the server, and this would be pointless.
If you have any questions or issues with integrating this into your mod, please feel free to comment here.
Any comments here that are not directly related towards mod development will be deleted.
This might be a solution i could use for ny zeds to sync