crazyperson225 Posted July 24, 2014 Report Share Posted July 24, 2014 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. Quote Link to comment Share on other sites More sharing options...
timmiej93 Posted July 28, 2014 Report Share Posted July 28, 2014 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 Quote Link to comment Share on other sites More sharing options...
The Loot Posted July 28, 2014 Report Share Posted July 28, 2014 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. Quote Link to comment Share on other sites More sharing options...
itchboy Posted July 28, 2014 Report Share Posted July 28, 2014 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.} Quote Link to comment Share on other sites More sharing options...
timmiej93 Posted July 28, 2014 Report Share Posted July 28, 2014 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. Quote Link to comment Share on other sites More sharing options...
Dyson Posted July 28, 2014 Report Share Posted July 28, 2014 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. Quote Link to comment Share on other sites More sharing options...
itchboy Posted July 28, 2014 Report Share Posted July 28, 2014 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. Quote Link to comment Share on other sites More sharing options...
Dyson Posted July 28, 2014 Report Share Posted July 28, 2014 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? Quote Link to comment Share on other sites More sharing options...
timmiej93 Posted July 28, 2014 Report Share Posted July 28, 2014 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. Quote Link to comment Share on other sites More sharing options...
itchboy Posted July 28, 2014 Report Share Posted July 28, 2014 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. Quote Link to comment Share on other sites More sharing options...
Dyson Posted July 28, 2014 Report Share Posted July 28, 2014 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? Quote Link to comment Share on other sites More sharing options...
timmiej93 Posted July 28, 2014 Report Share Posted July 28, 2014 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? Quote Link to comment Share on other sites More sharing options...
crazyperson225 Posted July 28, 2014 Author Report Share Posted July 28, 2014 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. Quote Link to comment Share on other sites More sharing options...