Force a player to play an animation via script?

Post » Sat Aug 23, 2014 7:17 am

I have successfully built a script for a butterchurn. Now I would like to add an animation, but I haven't the foggiest clue as to how to add one in the script.
I would like to add it after the Notification(wait) line as a way to force the character to wait before clicking the activator repeatedly.
Any help would be appreciated.

Scriptname ww_butterchurn_script extends ObjectReference  {Script for churning butter}	Import Utility	Import Game	Import Debug			Potion Property Milk  auto	Potion Property Butter auto	Int Check		Event OnActivate (ObjectReference akActionRef)		String NoIng = "You need milk to churn into butter."		String Wait = "Churning..."		String Done = "You have churned three tubs of butter."		Actor Player = GetPlayer()						Check = Player.GetItemCount(Milk)					If Check < 1			Return Notification(NoIng)		ElseIf akActionRef == Player				Player.RemoveItem(Milk,1,True,Self)					 Notification(Wait)					Utility.Wait(3.0)				Player.AddItem(Butter,3)					Return Notification(Done)			EndifEndEvent
User avatar
Margarita Diaz
 
Posts: 3511
Joined: Sun Aug 12, 2007 2:01 pm

Return to V - Skyrim