GetPCLevellingUp()
Retrieves reference to the last PC that levelled up.
object GetPCLevellingUp();
Description
Returns the last PC that levelled up.
Version
1.61
Example
// Demonstrates how to apply a spell affect to the PC who has just levelled up.
void main()
{
//Polymorphs PC into a penguin for two minutes.
object oPC=GetPCLevellingUp();
effect ePolymorph=EffectPolymorph(POLYMORPH_TYPE_PENGUIN, TRUE);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, ePolymorph, oPC, 120.0);
}
See Also
| categories: | PC Only Functions |
author: Sarev0k, editor: Lilac Soul