Jump to content
Sign in to follow this  
virtualinfantry

Struggling with on HIT event handler, need some assistance please

Recommended Posts

Can anyone succeed in editor with this test?

Try to add eventhandler "hit" to popup target that calls a script score.sqf which needs object name, player, and a score to add to player score

All my attempts result in what might be a bug, as when I shoot target, I get that file not found like error popup box, but its not calling actually trying to call a script, its acting like its calling variables as the filename :D Whats even more bizarre is that it seems to actually call the script... as a hint displays the correct data..

If needed, the target score can be put in each of the the object placed, but prefer to have the score data in script, as different targets will have different scores..

Thanks for your help....

---------- Post added at 16:42 ---------- Previous post was at 15:32 ----------

Hrmph, actually seems to be working today, not sure if client updated....

this addEventHandler["hit", {[_this select 0, _this select 1, _this select 2, targetscore] execVM "score.sqf"}];

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  

×