2007.12.09, 05:35 PM
What does this error mean?
Heres the function:
Line 120 is the second one, so I'm guessing the error's in that function.
Code:
JS Error [unseen_bot_fy_trooper.js]
120: TypeError: obj has no propertiesHeres the function:
Code:
function fyTrooperFire(obj)
{
obj.model.animation.index=1;
//Fire
if (mood=='attack') {
if (obj.sight.testObject(victim)) {
obj.model.animation.interrupt('idle fire');
obj.weapon.fire('bot_bl15',1);
if (utility.random.getInteger(1,10)==1) fyTrooperMove(obj);
}
obj.event.chain(utility.random.getInteger(3,7),'fyTrooperFire');
}
}