Garry's Mod Wiki

Garry's Mod Wiki

  number ENTITY:GetRelationship( Entity ent )

Description

Called when scripted NPC needs to check how he "feels" against another entity, such as when NPC:Disposition is called.

Arguments

1 Entity ent
The entity in question

Returns

1 number with D enum
How our scripter NPC "feels" towards the entity in question. See D enum. Not returning any value will make NPC:Disposition return the default disposition for this SNPC's given m_iClass by the engine.

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