its like triggeraction. only less complicated. and geared twards playerweapons.
callweapon weaponindex,flag;
so if I call my selected weapon with the flag "sayhi"
NPC Code:
callweapon selectedweapon,sayhi;
and in the weapon I have
NPC Code:
if(sayhi) {
setplayerprop #c,Hi!;
}
I will say hi when I call the weapon.