Author Topic: Close Please delete this!  (Read 755 times)

« Last Edit: October 21, 2007, 05:15:02 PM by icyhot50 »

If you changed something in a datablock, you have to change the datablock name.

Dunno if that would make BL crash, though.

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');


Try adding a } to your last function like this:

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');
}

I dunno if you also need  ;s  beside your }s for functions to make them work though.


nope didn't help. please tell me what i'm doing wrong!