Garry's Mod

Garry's Mod

Groundwatch
Meowrailigence 21. dec. 2016 kl. 13: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.
< >
Viser 1-2 af 2 kommentarer
Gears 21. dec. 2016 kl. 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)

Sidst redigeret af im muffin its muffin time; 23. dec. 2016 kl. 3:15
< >
Viser 1-2 af 2 kommentarer
Per side: 1530 50