Rpc will not work when directly called from within a user script
Description
Description
Details
Details
- Severity
- Minor
- Resolution
- Open
- Reproducibility
- Always
- Operating System
- Windows 10
- Category
- General
Steps To Reproduce
- Create some entity
- Add a user script to that entity
- Within the user script, add a method that should be Rpc-ed and add an Rpc call somewhere. For example, I wrote this user script for a trigger entity.
- Add an RplComponent to the trigger entity.
- Play (with PeerTool) and it will result in this error: RpcError: Calling a RPC from an unregistered item! itemType='script::Game::SCR_BaseTriggerEntity', rpc=''
If you copy the very same script and save it as a completely new entity, it will work just fine, the issue specifically occurs when using Rpc inside of user scripts.
Additional Information
Here is a test prefab with the sphere trigger user script, be sure to rename it so the script runs.
Event Timeline
Comment Actions
Hello TilW.
This is currently not supported and we do not plan to support this in the near future.
Regards,
Geez