Ped::clearRelationshipBetweenGroups: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
Line 1: Line 1:
Clears the relationship between two groups. This should be called twice (once for each group).<br><br>Relationship types:<br>0 = Companion<br>1 = Respect<br>2 = Like<br>3 = Neutral<br>4 = Dislike<br>5 = Hate<br>255 = Pedestrians<br>(Credits: Inco)<br><br>Example:<br>PED::CLEAR_RELATIONSHIP_BETWEEN_GROUPS(2, l_1017, 0xA49E591C);<br>PED::CLEAR_RELATIONSHIP_BETWEEN_GROUPS(2, 0xA49E591C, l_1017);
Clears the relationship between two groups. This should be called twice (once for each group).<br><br>Relationship types:<br>0 = Companion<br>1 = Respect<br>2 = Like<br>3 = Neutral<br>4 = Dislike<br>5 = Hate<br>255 = Pedestrians<br>(Credits: Inco)<br><br>Example:<br>PED::CLEAR_RELATIONSHIP_BETWEEN_GROUPS(2, l_1017, 0xA49E591C);<br>PED::CLEAR_RELATIONSHIP_BETWEEN_GROUPS(2, 0xA49E591C, l_1017);
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">ped.clearRelationshipBetweenGroups(relationship, group1, group2);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.ped.clearRelationshipBetweenGroups(relationship, group1, group2);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''relationship:''' int
*'''relationship:''' int
Line 10: Line 10:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Ped_function_c}}
{{Ped_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Revision as of 21:29, 6 May 2017

Clears the relationship between two groups. This should be called twice (once for each group).

Relationship types:
0 = Companion
1 = Respect
2 = Like
3 = Neutral
4 = Dislike
5 = Hate
255 = Pedestrians
(Credits: Inco)

Example:
PED::CLEAR_RELATIONSHIP_BETWEEN_GROUPS(2, l_1017, 0xA49E591C);
PED::CLEAR_RELATIONSHIP_BETWEEN_GROUPS(2, 0xA49E591C, l_1017);

Syntax

mp.game.ped.clearRelationshipBetweenGroups(relationship, group1, group2);

Required Arguments

  • relationship: int
  • group1: Model hash or name
  • group2: Model hash or name

Return value

  • Undefined

Example

// todo

See also