Garry's Mod Wiki

NPC:GetTarget

Description

Returns the NPC's current target set by NPC:SetTarget.

This returns nil if the NPC has no target. You should use IsValid (which accounts for nil and NULL) on the return to verify validity of the target.

Returns

1 Entity
Target entity

Page Links


Special Pages


Wikis

?

Render Time: 283ms

Session 0
DB GetPage 74
Generate Html 2
SaveChanges 192
Render Body 0
Render Sidebar 11