Code: [Select]//weapon #1.cs... stateName[5] = "StopFire"; stateTransitionOnTimeout[5] = "Ready"; stateTimeoutValue[5] = 0.2; stateAllowImageChange[5] = false; stateWaitForTimeout[5] = true; stateSequence[5] = "StopFire"; stateScript[5] = "onStopFire";};function swordImage::onPreFire(%this, %obj, %slot){ //messageAll( 'MsgClient', 'sword prefired!!!'); //Parent::onFire(%this, %obj, %slot); %obj.playthread(2, armattack);}function swordImage::onStopFire(%this, %obj, %slot){ %obj.playthread(2, root); //messageAll( 'MsgClient', 'stopfire');
//weapon #1.cs... stateName[5] = "StopFire"; stateTransitionOnTimeout[5] = "Ready"; stateTimeoutValue[5] = 0.2; stateAllowImageChange[5] = false; stateWaitForTimeout[5] = true; stateSequence[5] = "StopFire"; stateScript[5] = "onStopFire";};function swordImage::onPreFire(%this, %obj, %slot){ //messageAll( 'MsgClient', 'sword prefired!!!'); //Parent::onFire(%this, %obj, %slot); %obj.playthread(2, armattack);}function swordImage::onStopFire(%this, %obj, %slot){ %obj.playthread(2, root); //messageAll( 'MsgClient', 'stopfire');
//weapon #1.cs... stateName[5] = "StopFire"; stateTransitionOnTimeout[5] = "Ready"; stateTimeoutValue[5] = 0.2; stateAllowImageChange[5] = false; stateWaitForTimeout[5] = true; stateSequence[5] = "StopFire"; stateScript[5] = "onStopFire";};function swordImage::onPreFire(%this, %obj, %slot){ //messageAll( 'MsgClient', 'sword prefired!!!'); //Parent::onFire(%this, %obj, %slot); %obj.playthread(2, armattack);}function swordImage::onStopFire(%this, %obj, %slot){ %obj.playthread(2, root); //messageAll( 'MsgClient', 'stopfire');}