Relationships: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{deletebecause|duplicate page about entity - see [[ai_relationship]]}}
Relationships are what NPC characters use to know whether they should attack or not.
Relationships are what NPC characters use to know whether they should attack or not.
the entity "ai_relationship" will adjust an NPC character's relations with the Player (referred to as ''!Player'' in Hammer)or another NPC character.
the entity "ai_relationship" will adjust an NPC character's relations with the Player (referred to as ''!Player'' in Hammer)or another NPC character.

Revision as of 11:04, 6 October 2007

Template:Deletebecause Relationships are what NPC characters use to know whether they should attack or not. the entity "ai_relationship" will adjust an NPC character's relations with the Player (referred to as !Player in Hammer)or another NPC character.


The entity has quite a number of settings built into it, these though are probably the most important ones:


Subject(s) - The NPC receiving the relationship change (!Player will work also).

Target(s) - The target the picked NPC will change relationships with (!Player also works).

Disposition - Type of relationship, Hate / Neutral / Like / Fear.

Reciprocal - If true it will mirror the relationship to the Target, basically turning the Target's relationship with the Subject to whatever has been set.


Other settings:


Name - Essential if you plan to turn this on / off during game.

Radius for Subject - ????

Start Active - Whether the relationship should start active or not. (default FALSE)


By Rasirez.