ENTITY:GetRelationship
Description
Called when scripted NPC needs to check how he "feels" against another entity, such as when NPC:Disposition is called.
Scripted NPCs will not select other entities using same Entity:GetModel as this Scripted NPC's Entity:GetModel as enemy, unless NPC:AddEntityRelationship is cast.
Arguments
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.
Garry's Mod
Rust
Steamworks
Wiki Help