class re
AnimationSystem
re.AnimationSystem
- 0 properties
- 3 functions
Properties
None.
Functions
WorkspotState GetWorkspotState(ent.Entity entity)staticextensionPlayback state of the workspot on the entity, regardless of which bundle started it
WorkspotPlayResult PlayWorkspot(ent.Entity entity, ResRef path, WorkspotOptions options = default, Action<WorkspotFinishReason>? onFinished = null)staticextensionPlays a workspot on an entity this client controls (locally created or networked and owned). A workspot already playing on the entity from this bundle is replaced. Workspots started by a bundle stop when it unloads
- path
- Workspot resource, e.g. base\workspots\player\couch\player__sit_couch_lean_back__sit_around__01.workspot
- onFinished
- Called once when the playback ends, including failures detected after loading
bool StopWorkspot(ent.Entity entity, bool playExit = true, CName exitAnimation = default)staticextensionStops the workspot on the entity, if this bundle started it. Returns false when the entity has no workspot started by this bundle.
- playExit
- Play an exit animation first instead of snapping out of the workspot
- exitAnimation
- Exit animation to pla. Empty uses the workspot's first exit animation