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

RPG Character Mecanim Player Controller Intergration #1314

Closed SkyDuckzx closed 2 years ago

SkyDuckzx commented 2 years ago

hello i bought the kit and i was wondering would you have time to intergrate the RPG Character mecanim asset player controller with the kit? or any kind of guide what i need to do to make it work ?

insthync commented 2 years ago

If you are going to use just their animation, just set animations to character model settings.

You can find how to do it in https://dev.to/insthync/create-game-with-mmorpg-kit-part-2-map-and-first-character-54dl

SkyDuckzx commented 2 years ago

Im trying to Use Custom Player Controller , can you give me some guide where to start or what to do ?

insthync commented 2 years ago

Movement controller? not only animation?

SkyDuckzx commented 2 years ago

Movement controller with Animation, inside the RPG Character mecanim pack had player controller and i wanted to implement that or use with it, but have no clue how to do it to work with that animator since the parameter is different

insthync commented 2 years ago

For animations, you have to make a character model class which inherit from BaseCharacterModel, you can find example here: https://github.com/insthync/UnityMultiplayerARPG_InvectorCharacterModel

For movement control, you have to make a entity movement class which implement IEntityMovementComponent interface, you can use CharacterControllingEntityMovement, NavMeshEntityMovement as an example.

SkyDuckzx commented 2 years ago

and what about the character object? what i need to put in the component?

insthync commented 2 years ago

Attaches your character model and your entity movement component to the same game object with your character entity

SkyDuckzx commented 2 years ago

sorry im kinda new to this , but i have the character controller scripts, character input script ,character movement script and weapon controller script so which one should i be edit to work with the kit?

insthync commented 2 years ago

I can't tell the exact answer, have to check their scripts, I won't do it.