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: 65ms

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