Closed Mortified666 closed 9 years ago
Just a thought. Try putting instead:
this setVariable ["AGM_IsMedic", true, true];
Vehicles change locality when boarded by players.
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])
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.
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?
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
:eggplant:
:eggplant:
...
I like aubergines.
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.