← Previous | Next →
playAnimation
Description
Plays a specified animation on the NPC.
| Name |
Type |
Possibilities |
| playAnimation |
behaviour |
2 |
Parameters
| # |
Name |
Type |
Mandatory |
Description |
Multiple |
| 1 |
animDict |
string |
Yes |
The animation dictionary containing the animation to play. https://forge.plebmasters.de/animations/ |
No |
| 2 |
animName |
string |
Yes |
The name of the animation to play. https://forge.plebmasters.de/animations/ |
No |
| 3 |
duration |
number |
No |
The duration for which the animation should play in milliseconds. If not specified, the animation plays indefinitely. |
No |
Outputs
| # |
Description |
| 1 |
The animation has finished playing on the NPC. |
| 2 |
The animation is playing on the NPC. |
Example
NPC
name Dancer
model a_f_y_dancer_01
position -1020.72 4839.78 258.30 0.0
interaction
nothing
behaviour
playAnimation amb@world_human_partying@female@partying_beer@base base