der bastler 0 Posted May 24, 2003 I'm trying to get the slide of my H&K VP70 working. An animation was defined with an axis far far away; The weapon class was upgraded with these lines: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> animated = 1; class Animations {  class Schlittenanimation  {    type = "rotation";    animPeriod = 0.1;    selection = "Schlitten";    axis = "Schlittenachse";    angle0 = 0;    angle1 = 0.01;  }; }; class EventHandlers {  Fired = "this exec ""\bastler_umwp1\script\pistolenschlitten.sqs"""; }; But: The script is not executed! Is it possible to add an eventhandler to a weapon? Or is this feature reserved for vehicles only?  Share this post Link to post Share on other sites
DnA 5154 Posted May 24, 2003 I don't think event handlers work on weapons. The "Fired"-event is triggered when the unit with that event fires a weapon and a weapon itself can't really fire another weapon. Share this post Link to post Share on other sites
der bastler 0 Posted May 24, 2003 The only way of animating a weapon is using "revolving=" and "revolvingaxis=", right? Well, then I can forget the animated slide... Ok, I could duplicate the slide and place it as a zasleh-selection in moved-back position, but that wouldn't look good --especially after running out of ammo (you know the drill: last round fired, slide stays backward, chamber open... secure, load new clip, unsecure, shoot). *addsthistopictohispersonalOFP2suggestions* Share this post Link to post Share on other sites