Greeting Ye who hold the knowlwdge,
I need to determine the faction of the PC (EnteringObject)
If the PCs faction is not BB then return…
How can I determine a PCs faction and then compare it to my
BB string?
The following can’t work because I’m trying to compare a
string to an object…
[nwscript]
#include "NW_I0_GENERIC"
void main()
{
object oPC = GetEnteringObject();
object oFaction = OBJECT_SELF;
string sSetFaction;
string BB;
//test for BB faction
SetLocalString(oFaction, "sSetFaction", "BB");
string
sTestman = GetLocalString(oFaction, "BB");
if((!GetFactionEqual(sTestman,
OBJECT_SELF) == TRUE))
return
TRUE;
}[/nwscript]
thanks
'>
Grandaddy