Jump to content

Help with Event onDeath(actor akKiller)


GRRB

Recommended Posts

I need some help with a script I'm trying to make, where when bob dies, henry dies too

 

The script goes:

 

EVENT onDeath(actor akKiller)

 

but after that I'm not sure what to put?!?!

(random names for effect)

Thanks

Link to comment
Share on other sites

Actor Property Henry auto

Event OnDeath(actor akKiller)
    if akKiller == Game.GetPlayer()
        Henry.Kill()
    endif
EndEvent

 

Then save, exit, double click the script, click on the property, edit value and select you "Henry" NPC.

 

This script will work only if the player kills Bob. To make everyone able to fire the event, remove the "if akKiller" and the "endif" parts.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...