SetLocalObjectOnAll

From NWN Lexicon
Jump to: navigation, search



SetLocalObjectOnAll(object, string, object)

Sets a local object variable on all members of the PC's party

void SetLocalObjectOnAll(
    object oPC,
    string strVarName,
    object oValue
);

Parameters

oPC

Player Character

strVarName

local object variable name

oValue

object tag to be stored


Description

Given a PC, variable name and object tag, sets a local object variable on all members of the PC's party, including associates.



Remarks

Associates are not mentioned in documentation, but function does search for all Faction Members.

Include library for party-wide functions.

NOTE: this library is included in "x0_i0_common" already.
Do NOT dual-include both files or you will get errors!


Requirements

#include " X0_I0_PARTYWIDE "

Version

1.61

See Also



 author: Peter Busby