Skip to content

Scripts.AnimController

Wesley Haws edited this page Jan 1, 2017 · 2 revisions

##Scripts - AnimController

###What does this do?


NPC/Player movement animations. This is now deprecated for NPCs. This is only valid for player objects. Will play movement animations based on Input by the player.

###Who/What is this for?


Player objects only. Anyway enable "Player Controller".

###Setup


Example Setup:

Example Setup

Parameter Type Description
Player Controller bool Legacy. Always enable. Was originally to decide if this was an NPC or a player.
Calm Speed float Legacy. Put whatever you want. Originally used to see if the NPC was walking.
Suspicious Speed float Legacy. Put whatever you want. Originally used to see if NPC was sneaking.
Hostile Speed float Legacy. Put whatever you want. Originally used to see if NPC was hostile.
Debug Speed bool For debugging only. Logs current speed of object.
Debug Direction bool For debugging only. Logs current movement direction.
Debug States bool For debugging only. Logs current object state. (Mecanim)
Debug Animation Speed bool For debugging only. Logs current animation speed.
Animators Animator List Mecanim Animator List. What animators to set parameters for. They must all have the same parameters.
Clone this wiki locally