Giter Site home page Giter Site logo

Comments (7)

HolographicWings avatar HolographicWings commented on August 17, 2024

What is not synced exactly ? The state of the light ?
Unfortunately, sync network fields in unity require to made odd netcode scripting, with RPC tags
I don't understand anything about them
If you try to sync a field or the state of an objects it's simply not possible without a custom script, which is itself tricky to add as scripts are natively not allowed in bundles and run a script from an external DLL require the DLL to be a dependency of LE
To sync the entrances fields and fix the coilhead i used a really unconvenient method that specifically work on the entrances

from lethalsdk-unity-project.

Wesley-wasnietavailabledusdanmaarzo avatar Wesley-wasnietavailabledusdanmaarzo commented on August 17, 2024

All the trigger does for the light object is it calls the SetActive function and sets it to true
And does the same for the trigger but false
But this only happens clientside

from lethalsdk-unity-project.

HolographicWings avatar HolographicWings commented on August 17, 2024

All the trigger does for the light object is it calls the SetActive function and sets it to true
And does the same for the trigger but false
But this only happens clientside

Yes
Neet to send a RPC to the server and the server must send another RPC to all the client
Need custom code

from lethalsdk-unity-project.

Wesley-wasnietavailabledusdanmaarzo avatar Wesley-wasnietavailabledusdanmaarzo commented on August 17, 2024

I'm curious though
With a similar setup, is it possible to sync maybe an audio source playing or when you interact it plays an animation of an object moving for intance

from lethalsdk-unity-project.

HolographicWings avatar HolographicWings commented on August 17, 2024

I'm not sure to understand your question

from lethalsdk-unity-project.

Wesley-wasnietavailabledusdanmaarzo avatar Wesley-wasnietavailabledusdanmaarzo commented on August 17, 2024

So if I made a Network Prefab etc. with an interact trigger object that plays an audio source within the prefab, would that play the audio source for all players when interacted with?
Or if I made a Network Prefab that has a network animator/animator and an interact trigger object and I set the animation to move a cube or something, would that sync the animation for all players when the interactable object is interacted with?
Or is the whole idea of syncing anything just a far fetched dream

from lethalsdk-unity-project.

HolographicWings avatar HolographicWings commented on August 17, 2024

No, it will only sync it's position and rotation

from lethalsdk-unity-project.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.