Ai relationship: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (add AI category)
(Okay, more formatting...)
Line 1: Line 1:
[[category:AI]]
==ai_relationship==
ai_relationship


AI Relationship - Sets relationships between groups of NPCs in the AI.
AI Relationship - Sets relationships between groups of NPCs in the AI.


KEYS
==Keys==


Name targetname <target_source> The name that other entities refer to this entity by.
'''Name''' targetname <target_source> The name that other entities refer to this entity by.


Subject(s) subject <target_name_or_class> This is the NPC(s) whose disposition will change. May be a targetname or a classname.
'''Subject(s)''' subject <target_name_or_class> This is the NPC(s) whose disposition will change. May be a targetname or a classname.


Target(s) target <target_name_or_class> This is the NPC(s) about whom the Subject(s) will change their disposition. May be a tarGetname or a classname.
'''Target(s)''' target <target_name_or_class> This is the NPC(s) about whom the Subject(s) will change their disposition. May be a tarGetname or a classname.


Disposition disposition <choices> Choose the way the Subject(s) should feel about the Target(s)
'''Disposition''' disposition <choices> Choose the way the Subject(s) should feel about the Target(s)


Radius for subject radius <float>  
'''Radius for subject''' radius <float>  


Disposition Priority rank <integer> How much the Subject(s) should Like/Hate/Fear the Target(s). Higher priority = stronger feeling.
'''Disposition Priority''' rank <integer> How much the Subject(s) should Like/Hate/Fear the Target(s). Higher priority = stronger feeling.


Start Active StartActive <choices>  
'''Start Active''' StartActive <choices>  


Reciprocal Reciprocal <choices> Set this to YES to have the new relationship mirrored by Target
'''Reciprocal''' Reciprocal <choices> Set this to YES to have the new relationship mirrored by Target


==Inputs==


INPUTS
'''Kill''' Removes this entity from the world.


Kill Removes this entity from the world.
'''KillHierarchy''' Removes this entity and all its children from the world.


KillHierarchy Removes this entity and all its children from the world.
'''AddOutput <string>''' Adds an entity I/O connection to this entity. Format: <output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire (-1 == infinite)>. Very dangerous, use with care.


AddOutput <string> Adds an entity I/O connection to this entity. Format: <output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire (-1 == infinite)>. Very dangerous, use with care.
'''FireUser1''' Causes this entity's OnUser1 output to be fired.


FireUser1 Causes this entity's OnUser1 output to be fired.
'''FireUser2''' Causes this entity's OnUser2 output to be fired.


FireUser2 Causes this entity's OnUser2 output to be fired.
'''FireUser3''' Causes this entity's OnUser3 output to be fired.


FireUser3 Causes this entity's OnUser3 output to be fired.
'''FireUser4''' Causes this entity's OnUser4 output to be fired.


FireUser4 Causes this entity's OnUser4 output to be fired.
'''ApplyRelationship''' Apply relationship changes


ApplyRelationship Apply relationship changes
'''RevertRelationship''' Revert relationship changes


RevertRelationship Revert relationship changes
==Outputs==


'''OnUser1''' Fired in response to FireUser1 input.


OUTPUTS
'''OnUser2''' Fired in response to FireUser2 input.


OnUser1 Fired in response to FireUser1 input.
'''OnUser3''' Fired in response to FireUser3 input.


OnUser2 Fired in response to FireUser2 input.
'''OnUser4''' Fired in response to FireUser4 input.


OnUser3 Fired in response to FireUser3 input.
[[category:AI]]
 
[[category:Entities]]
OnUser4 Fired in response to FireUser4 input.

Revision as of 14:26, 4 July 2005

ai_relationship

AI Relationship - Sets relationships between groups of NPCs in the AI.

Keys

Name targetname <target_source> The name that other entities refer to this entity by.

Subject(s) subject <target_name_or_class> This is the NPC(s) whose disposition will change. May be a targetname or a classname.

Target(s) target <target_name_or_class> This is the NPC(s) about whom the Subject(s) will change their disposition. May be a tarGetname or a classname.

Disposition disposition <choices> Choose the way the Subject(s) should feel about the Target(s)

Radius for subject radius <float>

Disposition Priority rank <integer> How much the Subject(s) should Like/Hate/Fear the Target(s). Higher priority = stronger feeling.

Start Active StartActive <choices>

Reciprocal Reciprocal <choices> Set this to YES to have the new relationship mirrored by Target

Inputs

Kill Removes this entity from the world.

KillHierarchy Removes this entity and all its children from the world.

AddOutput <string> Adds an entity I/O connection to this entity. Format: <output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire (-1 == infinite)>. Very dangerous, use with care.

FireUser1 Causes this entity's OnUser1 output to be fired.

FireUser2 Causes this entity's OnUser2 output to be fired.

FireUser3 Causes this entity's OnUser3 output to be fired.

FireUser4 Causes this entity's OnUser4 output to be fired.

ApplyRelationship Apply relationship changes

RevertRelationship Revert relationship changes

Outputs

OnUser1 Fired in response to FireUser1 input.

OnUser2 Fired in response to FireUser2 input.

OnUser3 Fired in response to FireUser3 input.

OnUser4 Fired in response to FireUser4 input.