Any way to detect a specific player death via scripting?

Alright, I've got it figured out. You'll need a scriptable power-up and a script brain.

Power-up:

Disable respawn and despawn in the object properties. Add the following scripts:

Script 1

  • Condition: Interacted
  • Action 1: Label: Change * OBJECTS _* Mod 1: ACTIVATOR [add] _* Change: Add _* Label: user:alpha
  • Action 2: Wait _* Time: 0.10
  • Action 3: Message: Send _* Channel: barvo _* Transfer: ACTIVATOR
  • Action 4: Physics: Set * OBJECTS _* THIS [add] _* Type: Phased

Script 2

  • Condition: Message: Received _* Channel: alpha
  • Action 1: Spawn _* Force: yes
  • Action 2: Move: Offset * OBJECTS _* THIS [add] * TARGETS _* Mod 1: Players [add] _* Mod 2: Label [include] _* Label: user:barvo _* Mod 3: Dead [include] _* X / Forward: 0.00 _* Y / Horizontal: 0.00 _* Z / Vertical: 3.00 _* Local: no _* Time: 0.10
  • Action 3: Wait _* Time: 0.10
  • Action 4: Physics: Set * OBJECTS _* THIS [add] _* Type: Normal

Script 3

  • Condition: Message: Received _* Channel: alpha
  • Action 1: Wait _* Time: 0.20
  • Action 2: Label: Change * OBJECTS _* Mod 1: Players [add] _* Mod 2: Label [include] __* Label: user:barvo _* Change: Remove _* Label: user:barvo

Script brain

Add the following scripts:

Script 1

  • Condition: Timer: Check _* Initial: 0.00 _* Repeat: 0.05
  • Action 1: Label: Change * OBJECTS _* Mod 1: Players [add] _* Mod 2: Label [include] _* Label: user:alpha _* Mod 3: Dead [include] _* Change: Add _* Label: user:barvo
  • Action 2: Label: Change * OBJECTS _* Mod 1: Players [add] _* Mod 2: Label [include] _* Label: user:alpha _* Mod 3: Dead [include] _* Change: Remove _* Label: user:alpha

Script 2

  • Condition: Timer: Check _* Initial: 0.00 _* Repeat: 0.05
  • Action 1: Despawn * OBJECTS _* Mod 1: Players [add] _* Mod 2: Label [include] _* Label: user:alpha _* Mod 3: THIS [add] _* Mod 4: Select: First __* Value: 1
  • Always Runs: no

Script 3

  • Condition: Message: Received _* Channel: barvo Action 1: Spawn _ Force: yes

Script 4

  • Condition: Destroyed/Despawned * Action 1: Message: Send _* Channel: alpha

I've only tested this by myself in Forge, so I'm not sure if there would be any issues in Custom Games with multiple people. Let me know if you need any more help.

/r/halo Thread Parent