GetIsPC(object)

Check whether a creature is player controlled.

int GetIsPC(
    object oCreature
);

Parameters

oCreature

The creature to check for PC status.


Description

Returns TRUE if oCreature is a player controlled character, otherwise FALSE.

A player controlled character is treated as one of the following: a PC, DM avatars, familiars possessed by PCs, monsters possessed by DMs.



Remarks

GetAge can also be used to determine if a creature is a PC (as NPCs have no age). See the GetAge entry for more information.


Version

1.29

See Also

functions: GetIsDM | GetMaster
categories: Get Data from Creature Functions | PC Only Functions


 author: Tom Cassiotis, editor: Charles Feduke, additional contributor(s): Jochem van 't Hull, George Mathis