Garry's Mod

Garry's Mod

Terminator Nextbot
spencer 5 月 23 日 下午 10:40
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
< >
正在显示第 1 - 5 条,共 5 条留言
spencer 5 月 24 日 上午 12:00 
found a workaround
Broadcloth0 5 月 24 日 上午 11:09 
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
Broadcloth0 5 月 24 日 上午 11:11 
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 5 月 25 日 上午 1:50 
yeah i did something simmilar to this and it usually works
StrawWagen  [开发者] 5 月 25 日 下午 7:16 
You should use that function to do it
Anything else and it will probably break stuff or be broken
< >
正在显示第 1 - 5 条,共 5 条留言
每页显示数: 1530 50