The GetAssociate() NWScript command returns the specified associate of the given creature (an object).

Definition Edit

object GetAssociate (int nAssociateType, object oMaster=OBJECT_SELF,
int nTh=1)

int nAssociateType 
An ASSOCIATE_TYPE_* constant indicating which kind of associate is being sought.
object oMaster 
The creature whose associate is being retrieved.
int nTh 
The (1-based) index of the associate being retrieved. Changing this from the default only serves a purpose when there is more than one associate of the specified type (which typically can only happen for henchmen).

Returns OBJECT_INVALID if no such associate exists.

See also Edit

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.