Jump to content
Sign in to follow this  
der bastler

Weapons and scripts?

Recommended Posts

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?  rock.gif

Share this post


Link to post
Share on other sites

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

The only way of animating a weapon is using "revolving=" and "revolvingaxis=", right?

Well, then I can forget the animated slide... sad_o.gif

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×