Jump to content

Kill Command Wont Work


Recommended Posts

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 by LegoManIAm94
Link to comment
Share on other sites

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 by FrankFamily
Link to comment
Share on other sites

 

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 by LegoManIAm94
Link to comment
Share on other sites

  • Recently Browsing   0 members

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