suriyun-production / mmorpg-kit-docs

This is document for MMORPG KIT project (https://www.assetstore.unity3d.com/#!/content/110188?aid=1100lGeN)
https://suriyun-production.github.io/mmorpg-kit-docs
49 stars 11 forks source link

interactable objects #2416

Closed juniormagalhaes closed 4 months ago

juniormagalhaes commented 5 months ago

What method is used so that when interacting with the object the player executes an animation? and also that changes the item in the player's hand? I tried to find it here but without success.

insthync commented 5 months ago

Might have to write your own scripts, will you do it?

juniormagalhaes commented 5 months ago

Might have to write your own scripts, will you do it?

Yes, I have an experienced programmer friend who is helping me.

insthync commented 4 months ago

To play custom animation...

Okay, do you know that it has customAnimations in PlayableCharacterModel, you can set custom animation there.

Then in BaseGameEntity it have CallRpcPlayCustomAnimation and CallRpcStopCustomAnimation functions which you can use it for animation playing.

You also can see demo's PlayCustomAnimationAfterIdle class to learn how to use it.

Then you may hide weapons by deactivate weapon equipment sockets game objects.