I downloaded rkynick's mafia mod from his code dump topic. I got everything to work except it gave me two errors.
The first error was:
Add-Ons/Mod_Mafia/Weapon_Mafiachoose.cs (321): Unable to find object: '0' attempting to call function 'setControlObject'
2nd error:
Add-Ons/Mod_Mafia/Weapon_Mafiachoose.cs (320): Unable to find object: '' attempting to call function 'setOrbitMode'
so i looked at the file weapon_Mafiachoose.cs at line 305-3523 and here is that code:
function nextmafiaturn(){
$Mafia_client[$Mafia_turn].isturn=0;
$Mafia_turn++;
if($mafia_turn==1){
announce("It is now night, you may not talk. You will take turns waking up and doing your job.");
}else{
%client=$mafia_client[$mafia_turn-1];
%temp=new StaticShape() {
position="0 0 -300";
scale="0.001 0.001 0.001";
dataBlock=LCD;
};
missionCleanup.add(%temp);
%cam=%client.camera;
%client.setcontrolobject(%cam);
%cam.setOrbitMode(%temp,"0 0 -300",0,0,0,0);
%temp.delete();
}
I can't figure out what is wrong, help would be appreciated.