Page 1 of 1
so, does aircraft class support a 'deploy' animation?
Posted: Fri Aug 26, 2011 7:35 pm
by TheJamsh
My guess is no, I've set everything up right in the model and whatnot, and its a fairly decent animation, will be a shame if it doesn't work.
Anybody confirm this for sure?
Re: so, does aircraft class support a 'deploy' animation?
Posted: Sat Aug 27, 2011 11:09 am
by General BlackDragon
Theoretically, no.
But, again, theoretically there is this:
Code: Select all
- Fix for mantis #2435. Added, to ODFs:
[GameObjectClass]
InitAnimation = ""
RunAnimation = ""
InitAnimIsLooped = false
RunAnimIsLooped = true
If the first two entries are not blank, it attempts to use them.
The last two entries are flags as to whether the anim is looped or
1-way; if the init anim is looped, I don't think it'll ever proceed to
the run anim. Note that certain classes (e.g. extractor) have their
own code that can act like this. Specifying these new parameters for
those classes could cause conflicts and is not recommended. Compiles
but is untested.
Special note: looking in the code, anything w/ a deploy anim
possible (including, but not limited to aircraft, construction rigs,
persons, scavengers/hoverscavs, service trucks/hover service, tracked
deployables (and derived like commvehicle, deploybuilding,
recyclervehicle), tugs, and turret tanks) wait for animations to cease
before state transitions are allowed. Thus, putting a RunAnimation,
especially a looped runanim, on them will probably prevent state
transitions. If you have problems, then don't put anims on those
units. [NM]
If you figure out how to get that to work, please tell me.
Re: so, does aircraft class support a 'deploy' animation?
Posted: Sat Aug 27, 2011 2:25 pm
by TheJamsh
I've got that working, but thats only used for setting up loop animations, not deploy/undeploy ones.
Heres the code to make that work, this is from Serenesis' Speeder ODF that has a spinning turbine animation. The Initanim seems a bit wonky mind.
Code: Select all
animCount = 2
animName1 = "initanim"
animFile1 = "IVSweep_Loop.xsi"
animName2 = "runanim"
animFile2 = "IVSweep_Loop.xsi"
InitAnimation = "initanim"
runAnimation = "runanim"
Re: so, does aircraft class support a 'deploy' animation?
Posted: Sat Aug 27, 2011 5:36 pm
by General BlackDragon
Ah, i thought the animation name was an XSI name,

whoops.
Thank you.
Re: so, does aircraft class support a 'deploy' animation?
Posted: Sat Aug 27, 2011 5:48 pm
by TheJamsh
Yeah me too haha, BBB was the one who figured it out first.
Re: so, does aircraft class support a 'deploy' animation?
Posted: Sun Aug 28, 2011 12:09 am
by MrTwosheds
animName# in the odf can be used several ways, you either specify one of the "fixed" names used by the units class such as "deploy" or "walk" and now "Initanim" etc. Or it refers to the name of the animation in the xsi animation section, So in the odf
animName1 = "TurnTube01"
will activate in xsi
AnimationSet {
Animation anim-TurnTube01 {
{frm-Tube01}
But an instruction to run "TurnTube01" would need to be scripted in a dll, you can script custom animations in missions this way.