[Open Beta] Procedural On-the-Fly Animation in UE4: iTween!

Yes it is, sir. I recommend starting a new project using the vehicle game template then start messing with the controls and API.

Hey AdamZ,

The iTweenEvent object is the return value of the iTween call. The blue pin on the right of Actor Move From/To is the iTweenEvent. You don’t need to cast your Camera Boom as anything to tween it. However, a camera boom is SceneComponent, not an Actor, so you should use Component Move From/To instead of Actor Move From/To.

It would end up looking something like this:

I simplified the graph with a few Select nodes. Since you want the boom to move whether IsHolstered is true or false, we can just call one iTweenEvent for which the values change based on that boolean.

As for tweening the boom’s arm length, you can do that with a Float From/To node. In the future, tweening arm lengths directly will be supported, but it’s a while off. For now, you can do it with a float operation and an interface.

First, make sure your blueprint implements iTInterface. Click Class Settings:
Capture.

Then Add the iTInterface:
Capture.

Then you create your event. Pass the blueprint that implements the iTInterface into the “OnTweenUpdateTarget.” It will be called every frame that the tween updates. When it does, you can set the target arm length to the tween’s value. In this case, the target will be “self” since the blueprint that implements the interface and the blueprint that calls the tween is the same blueprint.

You call it, then search for “Event On Tween Update.” The screenshot shows “Event On Tween Data Tick” because I’m using a project with an older version of the plugin installed. I haven’t updated that project yet. On the Update Event node, you’ll see a pin that’s a Data Type struct called “DataTypeValues.” Right-click on it to split the struct pin so you can get the “float value” inside.

The switch is optional; it’s there so you can do different things if multiple tweens are calling the Update event at once. It checks the name of the tween then does something unique based on the name.

Interesting issue! Could you send me a screenshot? What’s producing the error? Unreal Engine or your phone? Which phone is it, what OS is your computer? Are you using the plugin version of iTween or the installed source version? Which revision? Sorry to barrage you with questions, but the more information we have the better chance we have at finding the cause of the issue. Thank you!