Jump to content

Synch question


Recommended Posts

If i create a weapon in client side and fire it through server side, will other players see the gun firing?

with other words (to be sure)

if the createWeapon is not synched but the fireWeapon is, will other players see the gun firing?

Link to comment
  • Moderators

As @Zorgman




A way you can bring serverside and clientside elements closer to each other.



local weapon = createElement("weaponS")




local weapons_s = getElementsByType("weaponS", resourceRoot)
for i = 1, #weapons_s do
 local weapon_s = weapons_s[i]
 local weapon_c = createWeapon(...)
 setElementParent(weapon_c, weapon_s)



ElementData can be used to transfer the properties and weapon states.

Etc. Ect. Ect.


This is a method you have to master, can't be learned with one tutorial.


  • Thanks 1
Link to comment

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...