variable off activate item?
Buddywarrior
Member Posts: 62
The following script isn't pulling the variable off the activated item. The PC gets the message string without the variable so I know the Unique Cast Spell is working. What else am I missing to grab that local variable off the item being activated?
thanks in advance.
oPC = GetItemActivator();
string vName = GetLocalString(OBJECT_SELF, "NAME");
SendMessageToPC(GetItemActivator(), "VAR NAME IS " + vName);
thanks in advance.
0
Comments
A lot of the time this could just be that the variable was set on a copy of an item but not the blueprint item. I've done this in testing a lot and forget that my variables were't set right. Other than that it could be a mismatched svar name.*facepalms self*