Okay, so I'mma trying to make a Vertical Launch System for a ship that has doors that open whenever a missile is fired from the launcher, and I noticed that this is doable because of Bobbau's Animation Code. What I need to use is:
$Animation: triggered
$type: turret firing
+sub_type: <model number of target turret>
However, there's a problem. I don't know what the code is referring to by 'model number.' Here's what the wiki says:
Syntax: +sub_type: Value, model number of the turret that triggers the animation. NOTE: This feature currently does not work on multipart turrets.
Since it's a value and not a string, it cannot be referencing the turret name. What is the 'model number' that this expression is attempting to reference, and how does one go about finding it? Could it perhaps be the turret number (if turretXX is the name, then the number is XX)?
Any help greatly appreciated.
EDIT:
Thanks to Nuke for the solution, that helped a lot. As many people seem to be in favor of this, could we please change it so that the code uses turret subobject name rather than model number?