Animated Objects - JBurlison/Pandaros.API GitHub Wiki

In this example I will show you how to create and animated object. Animated objects are simply objects that move from one point to another. The best example for these are projectiles and Settlers gates.

Step 1

Create a animated object.

 AnimationManager.AnimatedObject _gateXMinusItemObjSettings = AnimationManager.RegisterNewAnimatedObject(GameLoader.NAMESPACE + ".GateXMinusAnimated", GameLoader.MESH_PATH + "gatex-.obj", GameLoader.NAMESPACE + ".Gate");

Note once registered, you can get the object with AnimationManager.AnimatedObjects Dictionary.

Step 2

Make it move!

_gateXMinusItemObjSettings.SendMoveToInterpolated(startPosition, EndPostion, TravelTimeSeconds);