NatusDominari / missions

Source code for missions developed by Natus Dominari members.
MIT License
0 stars 0 forks source link

set medic class doesn't work on respawn #14

Closed milivojm closed 7 years ago

milivojm commented 7 years ago

I had a chat with ACE team. Need to fix that in the template.

tomhighway

9:36 AM hi everyone. I need help implementing medical system on revive based missions. Is it possible Set Medic Class with listed unit names doesn't work if the listed unit (medic) has respawned?

9:40 in other words, besides using the "set medic class" module, is there another scripted way of saying - "ok, this unit is medic or doctor". Thank you in advance.

baermitumlaut

9:42 AM Try using the Eden attribute instead (double click the unit and set that under ACE options)

tomhighway

9:46 AM Thanks. Is there a scripting command which I can use if that fails? I'd like to add it to onPlayerRespawn.sqf.

bux

9:50 AM every vanilla combat medic unit is a medic by default

9:50 (by config)

tomhighway

9:51 AM Ok. We've wanted to add basic medical ability to a grenadier class.

bux

9:52 AM https://github.com/acemod/ACE3/blob/master/addons/medical/functions/fnc_isMedic.sqf

GitHub

acemod/ACE3

ACE3 - Open-source realism mod for Arma 3

9:52 That’s the function that determines if a unit is a medic

tomhighway

9:52 AM Thanks @bux much appreciated.

bux

9:53 AM so it would be:

_unit setVariable ["ace_medical_medicClass", _rank] where _rank is a number between 0 and 2

9:53 0 - noob,

1 - medic,

2 - doctor

tomhighway

9:53 AM lol at 0 :slightly_smiling_face:

9:54 great

9:54 thanks

bux

9:54 AM but try it first, no guarantees

milivojm commented 7 years ago

Setting the class to medic in object attributes -> ace options helped.