NPC/SetTarget

From Garry's Mod
Jump to: navigation, search
 NPC:SetTarget( )

Contents

Description

Sets the NPC's target. This is used in some engine schedules.

Arguments

Entity entity

The target of the NPC.

Examples

Example

Sets the NPC's target to first player.

npc:SetTarget( Entity( 1 ) )


Personal tools
Navigation