Ped::setRelationshipBetweenGroups: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
 
Line 1: Line 1:
Sets 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><br>Example:<br>PED::SET_RELATIONSHIP_BETWEEN_GROUPS(2, l_1017, 0xA49E591C);<br>PED::SET_RELATIONSHIP_BETWEEN_GROUPS(2, 0xA49E591C, l_1017);
Sets 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><br>Example:<br>PED::SET_RELATIONSHIP_BETWEEN_GROUPS(2, l_1017, 0xA49E591C);<br>PED::SET_RELATIONSHIP_BETWEEN_GROUPS(2, 0xA49E591C, l_1017);
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">ped.setRelationshipBetweenGroups(relationship, group1, group2);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.ped.setRelationshipBetweenGroups(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]]

Latest revision as of 21:29, 6 May 2017

Sets 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

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

Syntax

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

Required Arguments

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

Return value

  • Undefined

Example

// todo

See also