User Tools

Site Tools


guides:checklist-for-worker-path

This is an old revision of the document!


Defining Building's Worker Path

You can choose a path for a worker when he is going to his workplace.

This path is defined by path points. These are locators under MAYA set in the fbx under the buildingPart of the workplace.

Once your building is well displayed in game, here is a simple check list to be sure you didn't forget something about the path:

1) The name of this buildingPart should contain “Part”.

2) These path points should be named PATH_x where x is a number.

3) The worker goes through these points from the smaller number to the greater number.

4) The final orientation of the worker depends on the orientation of the last PATH_x.

5) Processor

-- Apply building asset processor
myMod:registerAssetProcessor("models/myFbxName.fbx", {
    DataType = "BUILDING_ASSET_PROCESSOR"
})

Note:

1) for a simple building, the game display a green arrow on the first path (PATH_x with the smaller number). 2) for a monument, no green arrow is displayed (but the worker take although the path)

guides/checklist-for-worker-path.1614099323.txt.gz · Last modified: 2021/02/23 11:55 by minotorious

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki