paulytrick 10 Posted June 11, 2009 Hi all, is there a way I can tell if a specific unit has discharged his weapon? I want to use it in a cut scene to make one of the actors respond to enemy fire verbally. After searching the forum for something similar I think this would be the best way to do this instead of looking for bullets nearby through a constant loop which would almost certainly have an impact on performance. Thanks for any help, Paul. Share this post Link to post Share on other sites
stgn 39 Posted June 11, 2009 A workaround could be to just play the sound and then the voice. STGN Share this post Link to post Share on other sites
paulytrick 10 Posted June 11, 2009 Hi STGN, Thanks for the answer. I never thought of this and I will use it as a last resort but, I have the camera set up in such a way that the player will be able to see the projectile (in this case an RPG) and I don't really want to lose that. Is there some way I can set up a unit and FORCE it to fire without using the dofire command maybe through animation? Thanks for your help, Paul. Share this post Link to post Share on other sites
rellikki 7 Posted June 11, 2009 You should use eventHandler "fired". See here for more info: http://community.bistudio.com/wiki/addEventHandler It'll execute every time the person fires, so you should remove the eventHandler after one shot (if you wish to), using this command: http://community.bistudio.com/wiki/removeEventHandler Share this post Link to post Share on other sites
paulytrick 10 Posted June 11, 2009 Thanks Rellikki, I'll have a go at that. I'll let you know how I get on. Share this post Link to post Share on other sites
paulytrick 10 Posted June 11, 2009 (edited) Jey Rellikki, Just tried the event handler thingy and it works like a dream. It's gonna be great hearing the shout of 'SNIPER FIRE! GET IN COVER, GO! GO! GO!" and 'RPG, ROOF TOPS, 4 O'CLOCK' :) Cheers, Paul. Edited June 11, 2009 by paulytrick Share this post Link to post Share on other sites