Hi.
I'm wondering if there's a method in the NPC class to make it not do anything, and completely ignore players.
I currently have:
[LUA]
local npc = ents.Create("npc_citizen")
npc:SetPos( tbl.POS + Vector( 0, 0, 20 ) )
npc:SetAngles( tbl.ANG )
npc:SetModel( "models/Humans/Group02/male_07.mdl" )
npc:Spawn()
npc:SetAnimation( ACT_IDLE_ANGRY )
npc:CapabilitiesClear()
[/LUA]
But when a player approaches + touches the NPC, it turns its body.
Essentially what I'm looking for is the npc to only perhaps turn its head, but not its torso at all.
Any help is appreciated.
Thanks.
[QUOTE=PaellaPablo;41040945]Hi.
I'm wondering if there's a method in the NPC class to make it not do anything, and completely ignore players.
I currently have:
[LUA]
local npc = ents.Create("npc_citizen")
npc:SetPos( tbl.POS + Vector( 0, 0, 20 ) )
npc:SetAngles( tbl.ANG )
npc:SetModel( "models/Humans/Group02/male_07.mdl" )
npc:Spawn()
npc:SetAnimation( ACT_IDLE_ANGRY )
npc:CapabilitiesClear()
[/LUA]
But when a player approaches + touches the NPC, it turns its body.
Essentially what I'm looking for is the npc to only perhaps turn its head, but not its torso at all.
Any help is appreciated.
Thanks.[/QUOTE]
Create your own npc entity.
[url=http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index0479.html]NPC:StopMoving()[/url] or use this in a think hook
Sorry, you need to Log In to post a reply to this thread.