Jump to content
Sign in to follow this  
A-SUICIDAL

Need help with limiting heal script usage.

Recommended Posts

I am using a heal script in my coop mission, but I am trying to make it so players start with 3 "Med Kits" and when they run out I want to make it so they can get more from a field hospital(or other medical related object or vehicle). I cannot use Norrin's revive script in this mission because it conflicts with a few of other scripts that I created. In Norrin's revive, there is the ability to take bandages and med packs from a field hospital. I tried examining the way Norrin did it, but it's a little over my head and my attempts to create a way to do it have not been working out at all, so I figured I'd ask for help here. The purpose of limiting the 'Med Kits" is so I have a reason to keep the 2 playable medics in my mission. If I can't limit the "Med Kits", then there is no reason for me to keep the medics or the field hospitals that they can deploy - in the mission -and I really want to keep the medics and their field hospitals. My mission creation is done, this is the last nail I need to get tapped in. Any help with this would be much appreciated.

Share this post


Link to post
Share on other sites

Keep track of a variable and reduce it everytime they use a "heal".

Share this post


Link to post
Share on other sites
Keep track of a variable and reduce it everytime they use a "heal".

Might learn something about the script or scripting in general in the process. It takes time, but its worth it in the end.

Share this post


Link to post
Share on other sites

Thank you so much guys. I'm going try it right now.

-----------------

I just tried it, it works great. I'm trying to addAction to a field tent now to "Take bandages", no more than 3, but I'm having a little trouble with it, but I should get it figured out soon.

Edited by A-SUICIDAL

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  

×