Garry's Mod

Garry's Mod

Groundwatch
Meowrailigence 2016 年 12 月 21 日 下午 1:30
NPC Interaction.
Is there any possible way to make the Groundwatch and Airwatch addon interact with NPCs? I was really looking forward to NPC Battles with my friends using this addon.
< >
目前顯示第 1-2 則留言,共 2
Gears 2016 年 12 月 21 日 下午 1:43 
if you let NPCs see you before entering a groundwatch vehicle, they will continue to attack you.
im muffin its muffin time 2016 年 12 月 23 日 上午 3:15 
Put this code in the lua/autorun/server in your gmod directory as a .lua file.

function check(ply, npc, wep)
if npc == "npc_citizen" or npc == "npc_alyx" or npc == "npc_vortigaunt" then

for k, v in pairs (ents.FindByClass("gw_*")) do
v:AddEntityRelationship(npc, D_HT, 99)
end


end

end


hook.Add("PlayerSpawnNPC", "NPCAdd", check)

最後修改者:im muffin its muffin time; 2016 年 12 月 23 日 上午 3:15
< >
目前顯示第 1-2 則留言,共 2
每頁顯示: 1530 50