Jump to content
Sign in to follow this  
BOTum

Can Pop-up target hits count on scores?

Recommended Posts

Does anyone know if its possible to make a script to credit pop-up target hits count for scoring purposes?

 Im working on a "training" map that has both infantry pop-ups and tank "Target" objects and Id like to know how to credit each hit to the appropriate person who knocked it down/destroyed "Armored Target".

Any help from you amazing folks is appreciated.

Share this post


Link to post
Share on other sites

So does it know to addScore when the object is "hit" or "destroyed"?

How can I implement the addScore?

Do I do it in the objects editing fields or am I going to have to script it?

Thanks for your time.

Share this post


Link to post
Share on other sites

Use the Hit eventhandler to run some script which will addScore to the unit which shot the target.

You can attach it to the "pop-up target" object from within some script (for example from within the mission's init.sqf), or the object's init field.

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  

×