KoffeinFlummi / AGM

Authentic Gameplay Modification for A3 | THIS PROJECT IS NO LONGER BEING WORKED ON. ALL ISSUES AND PULL REQUESTS WILL BE IGNORED.
Other
125 stars 84 forks source link

AGM_Medical Medivac not working with empty vehicles. #1853

Closed Mortified666 closed 9 years ago

Mortified666 commented 9 years ago

So I wanted to get a vehicle that could be crewed by players to be the Medivac. Follow behind the line and be called in to revive downed players. I was able to get the Medivac to work on Static Objects, Triggers, Manned vehicles. Just not empty ones. I even put ( this setVariable ["AGM_IsMedic", true]; ) into the vehicles init line. Tested on a number of random vehicles including the HEMTT Medical, Tempest Medical, and the RHS M60 MEV. None were able to be classed as the Medivac entity.

nicolasbadano commented 9 years ago

Just a thought. Try putting instead:

this setVariable ["AGM_IsMedic", true, true];

Vehicles change locality when boarded by players.

PabstMirror commented 9 years ago

AGM_isMedic is for something else.

Medivac vehicles is controlled by the variable AGM_Medical_MEDEVACVehicles

That variable should be set by the AGM_Medical Module, you want to SYNC [F-6 Key] the module with the vehicle. (dark blue line, is different from Group [F-2 Key])

untitled

If you want to verify your vehicle is in the array run {cursorTarget in AGM_Medical_MEDEVACVehicles} call AgM_debug_fnc_monitor;

Oddly enough I think I found a bug with it, in that manned (AI) vehicles will have the AI added, not the vehicle itself

If you are still having problems, could you please get us a copy of the sqm.

Mortified666 commented 9 years ago

I will go back and do another test. Just to clarify. I did Sync the vehicle to the Module. I have used the Sync feature a lot. Just to clarify, when I sync'd it to a manned vehicle, the unit inside the vehicle became the trigger and not the vehicle itself. The unit was set to playable and we were able to Epipen when he was close to the downed soldier while the vehicle was hundreds of metres away.

If I am still having trouble. How should I send you the mission file?

Mortified666 commented 9 years ago

I seem to have made a grievous error. So as part of our Modset, we have Alive. It was set to Virtualize all editor units except sync'd ones. This was obviously changing the dynamic of the Vehicle and causing the Medivac Vehicle to not behave as intended. As soon as I turned that off. It worked perfectly. So sorry for the hassle and glad I was able to put you guys onto a bug at least. Appreciate the help and loving the mod :D

commy2 commented 9 years ago

:eggplant:

KoffeinFlummi commented 9 years ago

:eggplant:

...

commy2 commented 9 years ago

I like aubergines.