Garry's Mod Wiki

NPC:SetTarget

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 ) )

Special Pages


Wikis

?

Render Time: 17ms

DB GetPage 2
Generate Html 2
SaveChanges (1) 5
Render Body 0
Render Sidebar 6