RESOLVED
I've had this problem, not exactly sure what is wrong
Whenever I fire the item, the console echoes "Unknown command onFire" even though I did everything exactly like other mods
Pertinent code:
datablock ShapeBaseImageData(MyGunImage)
{
//Code
stateName[2] = "Fire";
stateTransitionOnTimeout[2] = "Reload";
stateTimeoutValue[2] = 0.14;
stateFire[2] = true;
stateAllowImageChange[2] = false;
stateSequence[2] = "Fire";
stateScript[2] = "onFire";
stateWaitForTimeout[2] = true;
stateEmitter[2] = "";
stateEmitterTime[2] = 0.05;
stateEmitterNode[2] = "muzzleNode";
stateSound[2] = "";
//More code
}
function MyGunImage::onFire(%this,%obj,%slot)
{
//Code
}
moved this out of general modification section because of so few views.