Relationship
Sets NPC's friendliness towards objects
Syntax
What is Priority?
Relative importance of the set relationship (higher numbers mean more important)
Relationship target,[neutral/enemy/fear],[priority]
Relationship caller,[neutral/enemy/fear],[priority]
Relationship all_enemy,[neutral/enemy/fear],[priority]
Relationship all_fear,[neutral/enemy/fear],[priority]
Relationship all_neutral,[neutral/enemy/fear],[priority]
Example
// (from ai_mission_bdk.p3s)
// You think you can take Krotchy down?!
xpt_firstrun
{
actions
{
TargetEntByName "npc_krotchy"
TargetToMem msLEADER
TargetPlayer 1
Relationship target,enemy,1
SetSquad krotchy_squad
ResetTarget 1
RemoveAttr FirstRun
State st_start
}
}