lia.anim
Player model animation.
Lilia comes with support for using Player-Models, although, there are a few standard animation sets that are built-in that should cover most non-player models:
citizen_male
citizen_female
metrocop
overwatch
vortigaunt
player
zombie
fastZombie
If you find that your models are T-posing when they work elsewhere, you'll probably need to set the model class for your model with lia.anim.setModelClass in order for the correct animations to be used. If you'd like to add your own animation class, simply add to the lia.anim table with a model class name and the required animation translation table.
Functions
getModelClass(model)
Gets a model's animation class.
Parameters
-
model
String
Model to get the animation class for
Returns
-
string
Animation class of the model
-
nil
If there was no animation associated with the given model
Example Usage
lia.anim.getModelClass("models/police.mdl")
> metrocop
setModelClass(model, class)
Sets a model's animation class.
Parameters
-
model
String
Model name to set the animation class for
-
class
String
Animation class to assign to the model
Example Usage
lia.anim.setModelClass("models/police.mdl", "metrocop")