SetPLocalInt(object, string, int)

Sets a variable that remains attached to a PC party.

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

Parameters

oPC

PC within a party.

sLocalName

Name of the variable.

nValue

Value the variable holds.


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).



Remarks

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


Requirements

#include "nw_i0_plot"

Version

1.28

See Also

functions: aGetPLocalInt | aSetPLocalInt | GetPLocalInt
categories: Local Variables Functions | Module Functions | Party Functions


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