I need help at meshing, probably coding, well, okay so i have done my mesh, made the animation, and imported my mesh, its a ceiling fan. All is fine, but there is ONE problem.. my code is something like this:
- Code: Select all
//=============================================================================
// DJFan.
//=============================================================================
class DJFan extends DeusExDecoration;
var bool bOn;
function Frob(Actor Frobber, Inventory frobWith)
{
Super.Frob(Frobber, frobWith);
if (bOn)
{
PlaySound(sound'Switch4ClickOff');
PlayAnim('On');
}
else
{
PlaySound(sound'Switch4ClickOn');
PlayAnim('Still');
}
bOn = !bOn;
}
defaultproperties
{
bHighlight=True
ItemName="Celling Fan"
bPushable=False
Physics=PHYS_None
Mesh=LodMesh'TestMod.CellingFan'
CollisionRadius=17.660000
CollisionHeight=16.240000
bCollideWorld=False
bFixedRotationDir=True
Mass=500.000000
Buoyancy=100.000000
BindName="Fan"
Skin=Texture'TestMod.CellingFanTex0'
}
taken from Switches at Deus Ex
The problem is:
The animation is well, runs well, but its not loop, i mean after the animation "On" finishes, DX stucks because its the max-frame, and it has nothing to do, how will i make a LOOP on Decoration animations?
I've tried LoopAnimPivot but its for Pawn etc.. not for Decoration.
Any expert out there?
Thanks in advance!