My problem is in expanding this mod to work on human companions. I'm told that I should avoid using resurrect but so far I haven't been able to make it work any other way.
In my failed test I did the following:
- set ED-E to essential
- added the following OnHit block to render ED-E unconscious if his health was reduced to 0
begin OnHit if GetActorValue health <=0 SetUnconscious 1 endifend
When I then shoot ED-E to death he falls down but I am not allowed to activate him. Then when the essential timer runs down he pops back up, even though he is still set to unconscious by my script.
Can anyone provide some guidance on how to render companions unconscious when there health is reduced to 0 without invoking the essential knockout script? Thanks.