Skip to content

Custom Pedestrians Setup

StonyOnGithub edited this page Sep 6, 2024 · 1 revision

What does it do?

Allows you to add custom meshes for pedestrians.

image

Custom NPC in action

Setup

Blender

You can find a Pedestrian Base .blend here to help setup your pedestrian.

NOTE! You will need the A-Ribeiro FBX Exporter Blender add-on to export your FBX correctly. You can then import your mesh in Blender, parent it to the Armature and export as FBX (A-Ribeiro) using those settings.

Make sure to select the "RemoveGhost" option under the exporter settings (locations can vary per version).

image image

settings2 settings3

Unity

Import your FBX, set its rig to humanoid then drag it in a Pedestrian Empty (you can use one from the MapStation Pedestrians and replace the Character Prefab with your own .FBX).

hierarchy

Copy and paste each component from the MapStation Pedestrian Prefab onto your FBX.

components image

Make sure to replace the Audio Source and Animator components in the Vanilla Asset Reference Script with your FBX's components. You can do so by dragging the component in the elements as seen below.

image image

Change the layer of your FBX to StreetLife and assign to childrens of your parent.

image image

You can also change your LOD renderer under the LOD Group component to your new mesh.

image

Considerations

Refer to the Pedestrian and the Street Life Cluster pages for how to set up Pedestrians properly.