Garry's Mod

Garry's Mod

Groundwatch
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.
< >
Showing 1-2 of 2 comments
Gears 21 Dec, 2016 @ 1:43pm 
if you let NPCs see you before entering a groundwatch vehicle, they will continue to attack you.
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)

Last edited by im muffin its muffin time; 23 Dec, 2016 @ 3:15am
< >
Showing 1-2 of 2 comments
Per page: 1530 50