Turret Head Problem
by WaxyChicken · in General Discussion · 11/30/2014 (5:27 am) · 1 replies
Using the AITurret / DeployableTurret as an example i'm trying to make some custom turrets.
The problem i'm having is that, although the body animates properly, the head of the turret just cycles through it's entire animation loop over and over.
What could cause this?
could it somehow be a node problem in the animation file?
The problem i'm having is that, although the body animates properly, the head of the turret just cycles through it's entire animation loop over and over.
What could cause this?
could it somehow be a node problem in the animation file?
singleton TSShapeConstructor(Turret_headDae2)
{
baseShape = "./turret-head.dae";
};
function Turret_headDae2::onLoad(%this)
{
%this.addSequence("ambient", "timeline", "0", "884", "1", "0");
%this.addSequence("ambient", "scan", "800", "801", "1", "0");
%this.addSequence("ambient", "wait_deploy", "2", "3", "1", "0");
%this.addSequence("ambient", "deploy", "0", "799", "1", "0");
%this.addSequence("ambient", "fire", "798", "799", "1", "0");
%this.addSequence("ambient", "fire_alt", "798", "799", "1", "0");
%this.addSequence("ambient", "destroyed", "840", "884", "1", "0");
%this.setSequenceCyclic("wait_deploy", "0");
%this.setSequenceCyclic("deploy", "0");
%this.setSequenceCyclic("destroyed", "0");
%this.setSequenceCyclic("fire", "0");
%this.setSequenceCyclic("fire_alt", "0");
}About the author
WaxyChicken
head state engine: http://pastebin.com/pNBt1S0M
head .cs file: http://pastebin.com/y9aV91jE