Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unity component to call custom RPC on server #60

Open
Jinjer88 opened this issue Sep 28, 2022 · 0 comments
Open

Unity component to call custom RPC on server #60

Jinjer88 opened this issue Sep 28, 2022 · 0 comments

Comments

@Jinjer88
Copy link

Is your feature request related to a problem? Please describe.
Adding custom client side code to a mod is near impossible right now, for example if you wanna mod a new throwable item into the game, with devtier you can use Bow as a base but it's very limited to bow functionality and you can't really be creative.

Describe the solution you'd like
a Unity component exposed to the modkit that has only 1 method, takes a string parameter as the RPC name and call the RPC on the server.
This way we can easily add an animation event that calls the custom RPC on the server and at least work with basic Unity components to do some cool stuff.

Describe alternatives you've considered
I tried to make the throwable tool work with BowItem and bow prefabs, but all bows require ammo to shoot and the item I wanna add doesn't need an ammo.

Additional context
There are already a lot of methods being called with animation events in the project, but they all call specific RPCs. Like with the bow, it uses LineRenderer for the aiming part and specifically calls an RPC on the server that creates an ArrowEntity. This part should be customizable, I need to be able to call my own RPC and maybe even create custom entities.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant