Jump to content

Blowing up amd killing an actor


Recommended Posts

Even though this script compiles and save, I know I can't run it on the actor I want to kill. So the line..

MyActor.Kill()

Will not let me assign the actor on which the script is running as a property, What should I be putting here to kill the actor?

 

 

Explosion Property MyBang Auto
Actor Property PlayerREF Auto
Actor Property MyActor Auto
Message Property MyMSG Auto

Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked)

if (akAggressor == Game.GetPlayer())
MyActor.placeAtMe(MyBang)
MyActor.Kill()
PlayerREF.Kill()
MyMSG.show()

endif
EndEvent

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

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