Garry's Mod Wiki

Garry's Mod Wiki

  Entity 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.

Issue Tracker: 3132

Returns

1 Entity
Target entity

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...