ok im not fluent in any code but have done some programing long ago. with out going into all the back story of why, all i want to do is to have a different background model for males and females in the character select and creation screens. I have narrowed it down to the GlueParent.lua. in fact its this section here:
function SetBackgroundModel(model, name)
local nameupper = strupper(name);
local path;
SetSelectedSex(sex);
if ( sex == SEX_MALE ) then
path = "Interface\Glues\Models\UI_"..name.."\UI_"..name.."_Male.m2";
else
path = "Interface\Glues\Models\UI_"..name.."\UI_"..name.."_Female.m2";
end
if ( model == CharacterCreate ) then
SetCharCustomizeBackground(path);
else
SetCharSelectBackground(path);
end
PlayGlueAmbience(GlueAmbienceTracks[nameupper], 4.0);
SetLighting(model, nameupper)
end
this is of course my edited version. since i dont know lua at all i dont know the syntax where im going wrong.
right now i get an error for the setselectedsex line. if i take it out the game will load fine but it always points to the female background model. never the male. i dont know quite what im doing wrong and could use some help. Thanks.
ok also tried this:
function SetBackgroundModel(model, name)
local nameupper = strupper(name);
local pathm = "Interface\Glues\Models\UI_"..name.."\UI_"..name.."_Male.m2";
local pathf = "Interface\Glues\Models\UI_"..name.."\UI_"..name.."_Female.m2";
if ( model == CharacterCreate ) then
if ( sex == SEX_MALE ) then
SetCharCustomizeBackground(pathm);
else
SetCharCustomizeBackground(pathf);
end
else
if ( sex == SEX_MALE ) then
SetCharSelectBackground(pathm)
else
SetCharSelectBackground(pathf)
end
end
PlayGlueAmbience(GlueAmbienceTracks[nameupper], 4.0);
SetLighting(model, nameupper)
end
same result. always female background model.