View Single Post
  #13  
Old 05-26-2005, 05:07 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Nonexistense? You have a lot of functions to get the weapon object, get the player, doing triggers. You can use findweapon(), findweaponnpc(), makevar, use trigger, scheduleevent, directly call functions of the weapon npc, or call functions from a class.
If you really want to put the code for eating into a weapon npc script and you want some random player eat something then you probably need to retrieve the player object and weapon object and call the script function or trigger an event. I don't understand why you make it that complicated though, and I don't know what kind of trigger you are missing (nor why you need to use triggers in this case).
Reply With Quote