Garry's Mod Wiki

NPC:SetTarget

NPC:SetTarget( Entity entity )

Description

Sets the NPC's target. This is used in some engine schedules.

Arguments

1 Entity entity
The target of the NPC.

Example

Sets the NPC's target to first player.

npc:SetTarget( Entity( 1 ) )

Page Links


Special Pages


Wikis

?

Render Time: 71ms

DB GetPage 46
Generate Html 2
SaveChanges (1) 9
Render Body 0
Render Sidebar 11