RelationshipGroupSetRelationshipWith Method

RAGE Plugin Hook Documentation

[This is preliminary documentation and is subject to change.]

Sets the relationship this group has with the specified relationship group.

Namespace:  Rage
Assembly:  RagePluginHook (in RagePluginHook.dll) Version: 0.0.0.0 (0.56.1131.11510)
Syntax

public void SetRelationshipWith(
	RelationshipGroup group,
	Relationship relationship
)

Parameters

group
Type: RageRelationshipGroup
The group to set the relationship with.
relationship
Type: RageRelationship
The relationship this group has with the other.
Examples

The following example makes the group "COP" hate the group "CRIMINAL", but not "CRIMINAL" hate "COP".
RelationshipGroup("COP").SetRelationshipWith("CRIMINAL", Relationship.Hate);
To make both groups hate each other, the relationship must be set on both.
RelationshipGroup("COP").SetRelationshipWith("CRIMINAL", Relationship.Hate);
RelationshipGroup("CRIMINAL").SetRelationshipWith("COP", Relationship.Hate);
See Also

Reference