GetFactionAverageLevel(object)
Get the average level of the members of the faction.
int GetFactionAverageLevel( object oFactionMember );
Parameters
oFactionMember
The object whose faction you wish to examine.
Description
Returns an integer corresponding to the average level of all the creatures in the object's faction.
Return value on error: -1
Version
1.22
Example
void main() { object oPC = GetPCSpeaker(); int nXP; int nLvl = GetFactionAverageLevel(oPC); nXP = nLvl * 250; RewardPartyXP(nXP, oPC); }
See Also
author: John Shuell
Send comments on this topic.