July 24, 201412 yr comment_276301 Hey guys I have been looking all over the place trying to find out how to get the MCU to go to the hospital just like the other ambulances. Â So I was wondering if someone could help me with that please. Report
July 28, 201412 yr comment_276662 It's quite a difficult piece of code, since the normal ambulances have 1 injured person, and 1 set of PM's with stretchers. So logically, code would be: Exit PM's + injured, go to spawn, drop off injured, get back in vehicle.For the MCU, they have to pick up and drop off more victims. It probably can be done, but it's not easy. Tim PS. I might start messing around with it to get some scripting experience Report
July 28, 201412 yr comment_276670 The real issue is that the transports are not being carried by a paramedic team and are simply inside the vehicle. The hospital script looks for paramedic teams carrying a person, and then makes those exit the vehicle, move to the hospital, and then remove the person. You could simply make the MCU a RTW vehicle instead of an ITW, but you'd have to have stretcher teams enter the vehicle with the person instead of being able to use anyone to just put them in the vehicle. Report
July 28, 201412 yr comment_276672 He would need to make a script where paramedics fetch a patient from the vehicle, disembark, put patient in hospital, get back in MCU, and do it again. Seems like a simple loop scriptfor(int i =0; i < v.GetNumTransports(); i++){  do what i said.  do what i said.} Report
July 28, 201412 yr comment_276676 Exactly my idea, just loop it until it reaches 0 transports. Would have to look into it a bit more to get it working though. Report
July 28, 201412 yr comment_276684 I've been looking into this, I was just planning on having all paramedics leave the MCU and move to the entrance and then remove all transports. But not sure if it's worth the hassle. Report
July 28, 201412 yr comment_276686 I've been looking into this, I was just planning on having all paramedics leave the MCU and move to the entrance and then remove all transports. But not sure if it's worth the hassle.That would lead to a problem though..If there are 6 paramedics and 9 victims, where will the 3 go. That's where the script of send and return comes in.Once Im done with my models, I will be sure to get this script done. Report
July 28, 201412 yr comment_276688 That would lead to a problem though..If there are 6 paramedics and 9 victims, where will the 3 go. That's where the script of send and return comes in.Once Im done with my models, I will be sure to get this script done. No the paramedics leaving would be purely aesthetic. Then the game would just manually remove all transports, so it looks like they've been moved without actually moving them. If that makes sense? Report
July 28, 201412 yr comment_276689 Yeah it makes sense, and scripting wise that would be the easiest by far. The other solution, manually unloading one by one would be awesome aesthetically though. Report
July 28, 201412 yr comment_276690 No the paramedics leaving would be purely aesthetic. Then the game would just manually remove all transports, so it looks like they've been moved without actually moving them. If that makes sense?Oh.....that is indeed far easier to script. In my opinion, the manual method would look prettier, but opens the possibility for bugs. Report
July 28, 201412 yr comment_276691 It depends how well it's set up, I use the single person stretcher script so my return to hospital script is already far different, but simply setting each EMT to leave show the injured person child and move to hospital, it wouldn't look any different to the player. You could even send them there and back a few times keep hiding and in hiding the injured person child. The same principle applies to the old system you'd just replace hiding child's for changing models. Again if that makes sense? Report
July 28, 201412 yr comment_276695 So, if I understand correctly, you'd remove all the injured people from the MCU in 1 go, but to make it look good, you make the EMT's with stretchers walk back and forth, while switching between showing an injured person on a stretcher or not? Report
July 28, 201412 yr Author comment_276702 Ok thanks guys. Â I just want to mention that I did play around with the go to hospital script but I just couldn't get it to work at all. Report
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.