Difference between revisions of "Tutorials:TS3 Easy Object Animation"
From SimsWiki
(→TS3 Easy Object Animations with TS3 Animator - RothN) |
|||
| Line 1: | Line 1: | ||
| + | {{TS3ModdingHeader}} | ||
| + | |||
=TS3 Easy Object Animations with [http://modthesims.info/d/448356 TS3 Animator] - RothN= | =TS3 Easy Object Animations with [http://modthesims.info/d/448356 TS3 Animator] - RothN= | ||
| Line 106: | Line 108: | ||
*To pan in the Jazz Editor, make small circular motions with your mouse near the edge of the screen in the directin that you want to pan. | *To pan in the Jazz Editor, make small circular motions with your mouse near the edge of the screen in the directin that you want to pan. | ||
[[[[Media:Link title]][[File:'''Example.jpg''']]]] | [[[[Media:Link title]][[File:'''Example.jpg''']]]] | ||
| + | |||
| + | {{TS3ModdingHeader}} | ||
| + | [[Category:Sims 3 Modding Tutorials]][[Category:Sims 3 Objects Tutorials]][[Category:Tutorials by RothN]] | ||
Revision as of 17:09, 17 September 2012
| Tutorials by Category | |
|---|---|
|
CAS | Patterns | Objects | Building | Worlds | Modding | Modding Reference |
TS3 Easy Object Animations with TS3 Animator - RothN
Creating a Default Object Script that will Run the Above Mentioned State Machine (feature new to TS3 Animator as of 11/27/2011)
- Click File->New->Script
- In the textbox that says "Class Name" in gray, type:
Sims3.Gameplay.Objects.Miscellaneous.MyLocoDresser
- In the big empty box, type:
namespace Sims3.Gameplay.Objects.Miscellaneous
{
public class MyLocoDresser : Sims3.Gameplay.Objects.ShelvesStorage.Mimics.DresserDesigner
{
public override void OnStartup()
{
base.OnStartup();
base.AddInteraction(PlayObjectAnim.Singleton);
}
public sealed class PlayObjectAnim : Sims3.Gameplay.Interactions.Interaction<Sims3.Gameplay.Actors.Sim, MyLocoDresser>
{
public static readonly Sims3.Gameplay.Interactions.InteractionDefinition Singleton = new Definition();
private bool PlayTheAnimation(Sims3.Gameplay.Interactions.InteractionInstance instance)
{
base.StandardEntry(false);
this.mCurrentStateMachine = Sims3.SimIFace.StateMachineClient.Acquire(this.InstanceActor, "CrazyDresser", Sims3.SimIFace.AnimationPriority.kAPDefault);
this.mCurrentStateMachine.SetActor("dresser", this.Target);
this.mCurrentStateMachine.EnterState("dresser", "Enter");
mCurrentStateMachine.RequestState("dresser", "Exit");
base.StandardExit(false);
return true;
}
protected override bool Run()
{
PlayTheAnimation(this);
return true;
}
[Sims3.Gameplay.Autonomy.DoesntRequireTuning]
private sealed class Definition : Sims3.Gameplay.Interactions.InteractionDefinition<Sims3.Gameplay.Actors.Sim, MyLocoDresser, MyLocoDresser.PlayObjectAnim>
{
protected override string GetInteractionName(Sims3.Gameplay.Actors.Sim a, MyLocoDresser target, Sims3.Gameplay.Autonomy.InteractionObjectPair interaction)
{
return "Play Animation";
}
protected override bool Test(Sims3.Gameplay.Actors.Sim a, MyLocoDresser target, bool isAutonomous, ref Sims3.SimIFace.GreyedOutTooltipCallback greyedOutTooltipCallback)
{
return true;
}
}
}
}
}
Finally, Export your package and say something in the discussion page if it doesn't work.
This is the .package file that the tutorial should yield.
Further Notes and Clarification:
- To pan in the Jazz Editor, make small circular motions with your mouse near the edge of the screen in the directin that you want to pan.
[[Media:Link titleFile:Example.jpg]]
| Tutorials by Category | |
|---|---|
|
CAS | Patterns | Objects | Building | Worlds | Modding | Modding Reference |

















