Garry's Mod Wiki

Garry's Mod Wiki

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

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 four times a day. Edits and history are not available.

Last Parsed: Loading...