I'm trying to restrict functions in a player class using callstack, but when I try to do so, it returns
PHP Code:
temp.stack[0].scriptcallobject.name
as the player's nick name when echoing, and not the weapon/class/npc it's being used from.
EG:
PHP Code:
<insert players nick> uses the addItem function!
echo's to NC instead of
PHP Code:
<insert name of weapon/class/npc> uses the addItem function!
The only way I can figure out how to avoid this was to move the function outside of the player class, but I really don't want to do that. Is there a way I can avoid this problem?