Jump to content

Sign in to follow this  
McArcher

Healing Place (Field Hospital and so on)

Recommended Posts

How can I add a ability to heal to the field hospital building and mash tent via script? What should I do?

(What I want: when I enter this building or tent, the sign '*' appears and I can heal myself here inside of tent).

Share this post


Link to post
Share on other sites

Wasn't the "heal at tent" (as well as medical vehicles) available by default? AFAIK all you have to do is place one in the editor.

Share this post


Link to post
Share on other sites

It's automatically available for "Field hospital" under the "Objects (Military)" category, but doesn't seem to be if you use the Warfare buildings.

I guess for those you'd have to use addAction to add a script which does the healing... is it possible to use the generic building instead? Would make your life much easier. :)

Share this post


Link to post
Share on other sites

omg, I thought it wasn't working, but it works even for warfare field hospital ! I just forgot to injure my character to check that it's working... :)

Share this post


Link to post
Share on other sites

Strange, I didn't forget to injure my character but didn't get the healing option from the warfare hospital. Though maybe they're faction-specific? I was a civilian and I think I put a Russian one down. Never mind then, glad it's working.

Share this post


Link to post
Share on other sites

Does the Field Hospital have to be your side? I am escaping from an enemy camp, and cant seem to get "healed" at the Opfor Medical tent. hmmmmmmmmmmm????

Would there be a code i could enter in the Opfor Field Hospital initialiazation spot that would allow bluefor to heal at opfor medtent?

Edited by Jack_Ryan_
added q?

Share this post


Link to post
Share on other sites

This is what I was thinking. I swear I've been in this position before. I can never seem to get a heal option at these, especially when it's the opposite side's tents.

I wonder if switch the tent to "Unlocked" in the Editor would allow it. Like being able to enter a vehicle whether it's locked or not.

EDIT:

I tried the vehicle lock on the RU field hospital and it still didn't work if I was a USMC unit. It does work in the same instance with the USMC field hospital though. Those must be faction specific. I also see there's no Gear option for them either. Sucks for ACE2 cause there's no med supplies in it like the MASH tent. Hint to anyone making ACE2 missions, add both. ;)

Edited by Manzilla

Share this post


Link to post
Share on other sites

I was testing the first aid modules in the editor, and they all seem to work fine, but... when I am incapacitated, it still lets me crawl, but I cannot perform any actions. I crawled to a US field hospital (tent) and I was not able to get healed at all. A player performed first aid on me, which did not fully heal me, but I was then able to heal myself fully at the US field hospital. Why couldn't I get healed when I crawled into the field hospital?

Players that are incapacitated and crawl to a field hospital cannot get healed, is there a way I can make it so they can get healed when they crawl to a field hospital?

Share this post


Link to post
Share on other sites

I added a trigger around the tent that execs a heal script, but after the player steps into the trigger and a script starts that makes the player heal himself, the flashing red screen continues to flash as if he is still hurt. If the players health is back to 0 and he is able to run around and aim steady, why would the flashing screen effect continue to occur? How can I get rid of that?

---------- Post added at 04:29 PM ---------- Previous post was at 03:52 PM ----------

I really hate this game sometimes. What the hell is the point of a field hospital if you can't crawl over to it and get healed? Another stupid bug that needs fixing. I got 2 medics in my mission with the ability to deploy field hospitals. The main purpose of these hospitals are so players that are incapacitated but can still crawl, can crawl over to the field hospital and get healed, but the stupid field hospitals only heal players that are slightly hurt. This makes no sense at all. And since I'm not a scripting genius with the ability to script a fix for a broken field hospital, I now have to get rid of the hospitals all together since they suck and don't do what they are supposed to do. Every time I search these forums, I never find anything that helps me. I have better luck searching google and the google results always direct me back to these forums. These forums need a search application that actual works.

Share this post


Link to post
Share on other sites

There's no bug. You just misunderstand the concept of the First Aid Module.

Without the First Aid Module you may get hurt, if the damage you receive is not lethal. Being hurt, you may be handicapped in movement, but basically, you can just do whatever you can do when in full health.

The First Aid Module puts a new logic on top of all that, adding the state of unconsciousness to the game. And as for the definition of being unconscious you shouldn't be able to do anything anymore unless another unit helps you up (still being able to crawl around may be the confusing thing here).

So why would being able to heal yourself an exception here? You can't heal yourself while being unconscious. As well as you can't enter vehicles, switch weapons, reload etc...

The "Heal" option at field hospitals and the "First Aid" option for people being unconscious are two totally different things. Your approach with the trigger etc. only crashes the whole system.

Share this post


Link to post
Share on other sites

If you use BIS first aid module, when you get in agony state you can only get saved by others. If the one who saved you is not a medic, then you will still need to get fully healed by a medic or medical tent. Medics can also save you faster than normal soldiers on top of being able to actually heal you, but medical tents cannot save you at all.

You don't have to use the BIS first aid system in missions you make. You can simply not place the module. If you use ACE you also have another option to use their module. And last thing you have is of course the option to use any of the scripts available out there or write your own.

I don't know of any forum (or any website for that matter) that can compete with google for searching. I always just google what I need, and if I want results from a specific website I use the site:<address> option, aka "site:bistudio.com first aid system".

Share this post


Link to post
Share on other sites

a possible workaround with the FA module is to have a AI medic stand inside MASH and do the heal action on you when you are near so and so distance.

but then on the other hand you can ofc just have him run out to you also.

There is also possibility of hiding the unit, he will be invicible to the player only, but able to do any action, such as heal.

Share this post


Link to post
Share on other sites

galzohar, everything u you said, I appreciate, but I know enough about how the modules work, and norrins revive, and most of the ace stuff too. I don't want to use any addons, and I prefer using my own scripts and scripts crafty friends come up with in these forums - that are different from what domi uses.

Bon, I am not unconscious if I can still crawl. If I can crawl to a Field Hospital, it should heal me. I joined somebody elses server a while back and the same thing happened there too. There was nobody around to help me, so I crawled far to a Field Hospital Tent, and it wouldn't heal me, finally somebody came and bandaged me, and at that point I was able to use the tent to heal myself fully. There was never any being unconscious. If I was unconscious, then why can I still see everything around me? Why can I still crawl in any direction I want and fire my gun. Obviously that state I was in renders me unable to use any actions, and healing requires the use of an action. Yet In Domi, players carry my body to a field hospital and drop me in front of it and it automatically heals me. I don't want to use norrins revive in my mission, no offense norrin, I'm just sick to death of hearing "Fuckit", "Bastards" "I need a medic", and the other speech files that have grown to get on my nerves. Sorry Bon, but I understand completely that the field hospital needs to be fixed, otherwise norrin wouldn't have fixed it in his own way.

Demonized, it's a deployed field hospital, deployed by a medic, so I kinda don't want to spawn another AI medic that just stand around at the tent. But it's not a bad idea for other missions. Normally a field hospital would have some hot nurses or something. But yeah, in my mission, the medic deploys the tent, then the medic runs off and gets killed as always, lol, and everybody else on my team seems to die right at the very moment that I get hit bad and wind up stuck crawling forever and need help :( . I made a fix for the hospital tent with a trigger and a script, and I was fully healed and running around back in the action again, but my screen was still flashing red. When I tested it further in preview with AI on my team, I crawled hurt into the trigger surrounding the field hospital and I went through the whole heal animation and then I was healed, but the flashing red screen was still occurring, and then I switched to a different unit and the screen just stayed dim red, but it stopped flashing. I switched to a few more units and the dim red haze would not go away. I switched back to the original soldier that was hurt and was healed by the trigger, and the screen still stayed dim red and didn't flash. I got everything working perfect - except for this flashing red screen stuff. All I can think to do now is - dissect how norrin got his hospital to heal incapacitated players that are carried and dropped in front of the field hospital. So far I haven't had much success.

Edited by A-SUICIDAL

Share this post


Link to post
Share on other sites

the flashing red is because you are "NOT" healed, you have simply cheated the damage with scripting commands.

as far as the FA module is concerned you are still incapacitated.

Being healed by a AI unit will fix all that, thats why you should maybe try to use a invicible (hidden) AI medic to heal any that are near the MASH, or maybe even gamelogics will work also, though i doubt the gl will work.

Never intended AI medic to participate in the game, just to act as a tool to end the incap flashing red screen. and then stand still again with setCaptive, hide, disableAI "all" etc...

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  

×