So, I'm trying to create a simple faction, I have all the things ready for it, but no matter what I try, you aren't able to open doors.
A copy paste of our faction and Class file [respectively]:
Code:
local FACTION = Clockwork.faction:New("Scientist");
FACTION.isCombineFaction = true; -- Is this faction a combine faction? Combine factions can open Nexus doors and use Combine locks. Optional, default is false.
FACTION.whitelist = true; -- If you need a whitelist to use this faction, use true. Otherwise use false.
FACTION.models = {
female = {"models/humans/group17/female_01.mdl","models/humans/group17/female_02.mdl","models/humans/group17/female_03.mdl","models/humans/group17/female_04.mdl","models/humans/group17/female_06.mdl","models/humans/group17/female_07.mdl"},
male = {"models/humans/apsci01/male_01.mdl","models/humans/apsci01/male_02.mdl","models/humans/apsci01/male_03.mdl","models/humans/apsci01/male_04.mdl","models/humans/apsci01/male_05.mdl","models/humans/apsci01/male_06.mdl","models/humans/apsci01/male_07.mdl","models/humans/apsci01/male_08.mdl","models/humans/apsci01/male_09.mdl"}
};
FACTION_SCIENTIST = FACTION:Register();
Code:
local CLASS = Clockwork.class:New("Unviersial Union Scientist"); -- What the player will be classified as in the scoreboard.
CLASS.color = Color(50, 100, 150, 255); -- RGBA color for chat
CLASS.wages = 100; -- Paycheck
CLASS.factions = {FACTION_SCIENTIST}; -- What faction uses this class? Make sure to match it with the faction you created above
CLASS.isDefault = true; -- When a player makes a character with your faction, this is the class they are given automatically.
CLASS.wagesName = "Benefactor Grants"; -- The upper-right hand corner text for "You have received n tokens (Supplies)".
CLASS.description = "A Universal Union scientist work for the greater good!"; -- The scoreboard description
CLASS.defaultPhysDesc = "A scuffed, not-so-white labcoat is donned on this intellectually gifted scientist"; -- The default physical description (If the player didn't set one)
CLASS_SCIENTIST = CLASS:Register();