Setting Up Your Own HECore

On your custom HECore, make sure you use HECorePrefabs as a prototype, this will ensure any non-overwritten elements are taken from the default asset.

Add FPCamera to the CustomObjects list and assign FPCharacter in the Character variable. If you already have a custom character move on to the next step.

Untitled

Setting up your own character

If you are early in development it might be worth creating your character from scratch using FPCharacter as Character Prefab from the Character Creation wizard. This will ensure your character is a prefab variant and you won’t have to do this after any major change to the add-on.

If you already have a character you don’t want to remake, just follow the next steps:

First, it´s important that your character model contains a new FPCamSocket located at the head location.

Untitled

Untitled

  1. Remove PlayerMovementAlternate and PlayerMovementTank components from the character.

  2. Add PlayerMovementFirstPerson component. Make sure the variables and properties match those inside FPCharacter to get an expected behaviour (you can tweak this further as you like).

  3. In the Aiming state. Remove PlayerVerticalAimingFromInput script and add PlayerVerticalAimingFromTransform. Using the following values.

    Untitled

    Untitled

  4. Remove MovementTypeSettings from the PlayerMovement component

Untitled

  1. Make sure you player state have the expected Tags. The camera has specific configurations for each state. You can remove these specific configurations or add the tags to the states .

Untitled