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.
< >
Näytetään 1-2 / 2 kommentista
Gears 21.12.2016 klo 13.43 
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)

Viimeisin muokkaaja on im muffin its muffin time; 23.12.2016 klo 3.15
< >
Näytetään 1-2 / 2 kommentista
Sivua kohden: 1530 50