SetPLocalInt

From NWN Lexicon



Contents

[edit] SetPLocalInt(object, string, int)

Sets a variable that remains attached to a PC party.

void SetPLocalInt(
    object oPC,
    string sLocalName,
    int nValue
);

[edit] Parameters

oPC

PC within a party.

sLocalName

Name of the variable.

nValue

Value the variable holds.


[edit] Description

Sets a local integer on every PC who belongs to the party that the oPC belongs to, identified by sLocalName with the value of nValue. This is useful for servers when parties are constantly changing (players disconnecting/reconnecting).



[edit] Remarks

Multi-player friendly way of tracking integers among an entire party of PCs. Same as aSetPLocalInt(object, string, int).


[edit] Requirements

#include " nw_i0_plot "

[edit] Version

1.28

[edit] See Also

functions: 

GetPLocalInt



 author: Charles Feduke, additional contributor(s): Tom Cassiotis
 

Personal tools
Categories