Garry's Mod Wiki

Revision Difference

ENTITY:GetRelationship#552981

<function name="GetRelationship" parent="ENTITY" type="hook"> <ishook>yes</ishook>⤶ <description>Called when scripted NPC needs to check how he "feels" against another entity, such as when <page>NPC:Disposition</page> is called.</description> <realm>Server</realm> <predicted>No</predicted>⤶ <args> <arg name="ent" type="Entity">The entity in question</arg> </args> <rets> <ret name="" type="number">How our scripter NPC "feels" towards the entity in question. See <page>Enums/D</page>.</ret> </rets> </function>