Garry's Mod

Garry's Mod

Terminator Nextbot
npc relationships
im coding something for me and my friends to use [wont be public] and i needed to know how i would change a terminator nextbots relationship with npcs so that he likes specific types of npcs but hate others
i tried doing it how you would for a normal npc but it did not work
< >
Showing 1-5 of 5 comments
spencer 24 May @ 12:00am 
found a workaround
function ENT:DoHardcodedRelations()
self.term_HardCodedRelations = {
["npc_barney"] = { D_LI, D_LI, 1000 },
["npc_alyx"] = { D_LI, D_LI, 1000 },
["npc_citizen"] = { D_LI, D_LI, 1000 },
["Medic"] = { D_LI, D_LI, 1000 },
["Rebel"] = { D_LI, D_LI, 1000 },
["Refugee"] = { D_LI, D_LI, 1000 },
["npc_dog"] = { D_LI, D_LI, 1000 },
["npc_eli"] = { D_LI, D_LI, 1000 },
["npc_magnusson"] = { D_LI, D_LI, 1000 },
["npc_mossman"] = { D_LI, D_LI, 1000 },
["npc_vortigaunt"] = { D_LI, D_LI, 1000 },
["npc_rollermine_hacked"] = { D_LI, D_LI, 1000 },
["npc_turret_floor_resistance"] = { D_LI, D_LI, 1000 },
["VortigauntUriah"] = { D_LI, D_LI, 1000 },
["VortigauntSlave"] = { D_LI, D_LI, 1000 },
}
end


simple, just add the npcs in the list you want to be friendly with
pretty sure this would work, it wont work in the session you add the code in so you may wanna rejoin the singeplayer server
spencer 25 May @ 1:50am 
yeah i did something simmilar to this and it usually works
StrawWagen  [developer] 25 May @ 7:16pm 
You should use that function to do it
Anything else and it will probably break stuff or be broken
< >
Showing 1-5 of 5 comments
Per page: 1530 50