nanos world API Reference Unofficial documentation
Function Shared Moderate

Vehicle:PlayAnimation

Plays an Animation on this Vehicle

Syntax

Lua
my_vehicle:PlayAnimation(animation_path, slot_name = DefaultSlot, loop_indefinitely = false, blend_in_time = 0.25, blend_out_time = 0.25, play_rate = 1.0, stop_all_montages = false)

Parameters

Name Type Default Description
animation_path AnimationPath
slot_name optional string DefaultSlot
loop_indefinitely optional boolean false This parameter is only used if the Vehicle has an Animation Blueprint
blend_in_time optional float 0.25 This parameter is only used if the Vehicle has an Animation Blueprint
blend_out_time optional float 0.25 This parameter is only used if the Vehicle has an Animation Blueprint
play_rate optional float 1.0 This parameter is only used if the Vehicle has an Animation Blueprint
stop_all_montages optional boolean false Stops all running Montages from the same Group. This parameter is only used if the Vehicle has an Animation Blueprint