stateName[0] = "Activate";
stateTimeoutValue[0] = 0.15;
stateTransitionOnTimeout[0] = "Ready";
stateSound[0] = weaponSwitchSound;
stateName[1] = "Ready";
stateTransitionOnTriggerDown[1] = "Fire";
stateAllowImageChange[1] = true;
stateName[2] = "Fire";
stateTransitionOnTriggerUp[2] = "StopFire";
stateTransitionOnTimeout[2] = "Fire";
stateTimeoutValue[2] = 0.005;
stateWaitForTimeout[2] = true;
stateFire[2] = true;
stateAllowImageChange[2] = true;
stateSound[2] = ApCaFireSound;
stateScript[2] = "onFire";
stateName[3] = "StopFire";
stateTransitionOnTimeout[3] = "Ready";
stateTimeoutValue[3] = 0.05;
stateWaitForTimeout[3] = true;
stateAllowImageChange[3] = true;
stateScript[3] = "onStopFire";
};
//Beam Functions
//
//function ApCaImage::onFire(%this,%obj,%slot)
//{
// Stuff goes here for mounting ApolloCannonBEAM.dts to
// the muzzle point of ApolloCannonBASE.dts. The back end
// of the beam needs to be mounted to the muzzle.
//}
//
//function ApCaImage::onStopFire(%this,%obj,%slot)
//{
// This unmounts the beam image
//}
//
What I want to know is what I need to put in the functions, as I have no idea how to do this. If I were to guess, it would be something like:
%obj.MountImage(BeamImage);
Also, if there is a more efficient way, please let me know.