Garry's Mod Wiki

Garry's Mod Wiki

  boolean IsFriendEntityName( string className )

Description

Returns if the given NPC class name is a friend. Returns true if the entity name is one of the following:

  • monster_scientist
  • monster_barney
  • npc_alyx
  • npc_barney
  • npc_citizen
  • npc_dog
  • npc_eli
  • npc_fisherman
  • npc_gman
  • npc_kleiner
  • npc_magnusson
  • npc_monk
  • npc_mossman
  • npc_odessa
  • npc_vortigaunt

Arguments

1 string className
Class name of the entity to check

Returns

1 boolean
Is a friend

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