datablock ShapeBaseImageData(BananaModelImage)
{
shapeFile = "./banana.dts";
emap = true;
mountPoint = 7;
offset = "0 0 0.85";
eyeOffset = "-10 -10 0";
eyeRotation = eulerToMatrix("0 0 0");
scale = "1 1 1";
correctMuzzleVector = true;
doColorShift = false;
colorShiftColor = "1 1 1 1";
stateName[0] = "Activate";
stateTimeoutValue[0] = 0.1;
stateTransitionOnTimeout[0] = "Idle";
stateSound[0] = weaponSwitchSound;
stateName[1] = "Idle";
stateAllowImageChange[1] = true;
};
i just ripped this code from script_bananaplayer which does something similar what this is doing. I'd actually change it but on my phone and i need to go to bed
also i don't think the states should matter