LegoManIAm94 Posted May 2, 2016 Share Posted May 2, 2016 (edited) I cannot get this simple script to compile. Actor Property MyNPC Auto Event OnDeath() MyNPC.Kill() EndEvent It says that the Kill command is not valid. Does anyone know why this command will not compile? EDIT: Same goes with the SetEssential() command. Edited May 2, 2016 by LegoManIAm94 Link to comment Share on other sites More sharing options...
Elias555 Posted May 2, 2016 Share Posted May 2, 2016 I take it you're trying to get 2 actors to die at the same time, right? What's the script attached to and what does it extend to? Have you tried KillEssential()? Link to comment Share on other sites More sharing options...
FrankFamily Posted May 2, 2016 Share Posted May 2, 2016 (edited) This compiles fine on mine: Scriptname adasdad extends Actor Actor Property MyNPC Auto Event OnDying(Actor akKiller) ;dying better that death afaik MyNPC.Kill(akKiller) ;blame the same guy that killed this actor EndEvent Edited May 2, 2016 by FrankFamily Link to comment Share on other sites More sharing options...
LegoManIAm94 Posted May 2, 2016 Author Share Posted May 2, 2016 (edited) This compiles fine on mine: Scriptname adasdad extends Actor Actor Property MyNPC Auto Event OnDying(Actor akKiller) ;dying better that death afaik MyNPC.Kill(akKiller) ;blame the same guy that killed this actor EndEvent That scripts does compile for me but when my actor dies it doesn't kill the other actor. I realized why my script didn't comple before. I didnt have the "extends Actor" on the first line of the script. Edited May 2, 2016 by LegoManIAm94 Link to comment Share on other sites More sharing options...
FrankFamily Posted May 2, 2016 Share Posted May 2, 2016 (edited) Are you filling the property? Edited May 2, 2016 by FrankFamily Link to comment Share on other sites More sharing options...
Recommended Posts