Ped::getPedAsGroupMember

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

from fm_mission_controller.c4 (variable names changed for clarity):

int groupID = PLAYER::GET_PLAYER_GROUP(PLAYER::PLAYER_ID());
PED::GET_GROUP_SIZE(group, &unused, &groupSize);
if (groupSize >= 1) {
. . . . for (int memberNumber = 0; memberNumber < groupSize; memberNumber++) {
. . . . . . . . Ped ped1 = PED::GET_PED_AS_GROUP_MEMBER(groupID, memberNumber);
. . . . . . . . //and so on

Syntax

mp.game.ped.getPedAsGroupMember(groupID, memberNumber);

Required Arguments

  • groupID: int
  • memberNumber: int

Return value

  • Ped handle or object

Example

// todo

See also