heh, yeah, like i said it was off the top of my head, thanx, LCD
. anyway, heres my idea for a paraedic script. it consists of 2 medics getting in a vehicle, a jeep we will call "ambulance" when a guy gets injured. this is very rough and just a theory but you should get the general idea.
make a script called "man1status.sqs" and put it in the guy's init field to activiate when it starts, make shure you call him man1
start with a check on the guy to see if his health has changed, ie, <=0.1 and make it got to (on the same script) man1callforparamedic, just change whatever you want for man1 to be. on the man1callforparamedic bit, make it liek this-
#man1callforparamedic
medic1 getindriver ambulance
medic2 getincargo ambulance
~3
medic1 goto man1
#checknearman
?(medic1 <= 100 man1):goto "getout"
goto "checknearman"
#getout
medic1 exit ambulance
medic2 exit ambulance
(btw i cant remember the command for getting a guy to exit a vehicle)
medic1 goto man1
medic2 goto man1
#checkifclose
?(medic1 <= 5 man1):goto "pickupman1"
goto "checkifclose"
now, you can use this to get the medics to get in their ambulance, drive to the injured man and get close to him, but you can get one to heal or put in the jeep, ill let u decide.
btw, ull have to do this for each man and make multiple paramedics and change the scripts what will be very clunky, but should work.
?(medic2 <= 5 man1):goto "pickupman1"