Jump to content

How do I sync a variable between an entity's client/server instance?


Recommended Posts

Posted (edited)

I'm trying to make a projectile with several varieties, and instead of making 3 separate entites with largely the same code, I'm using an enum to distinguish between them. The only issue is, I want the different entity types to create different particle effects, but I can only access the 'type' enum on the server side. How would I go about making sure the client also has access to the enum?

Here's my projectile class so far

  Reveal hidden contents

 

Edited by Sciman101

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.