Jump to content

What's wrong with my script?


NakedScrolls

Recommended Posts

Script is meant to turn the actor into another race upon bleed out. But right now they just get back up after and don't attack me. They do become non essential after getting back up though, so there's that. Any ideas?

 

Scriptname UWDeathDealer extends Actor
Event OnEnterBleedout()
if doOnce == 0
doOnce=1 \
utility.wait(2.0) \
myRace = self.GetRace()
self.setRace(DeathDealer) ; suppose to switch race
self.startCombat(Game.getPlayer())
elseif doOnce == 1
doOnce=2
self.setRace(myRace)
self.killEssential(Game.GetPlayer())
endif
endEvent
race property myRace auto
race property DeathDealer auto
Int property doOnce=0 auto
Link to comment
Share on other sites

  • Recently Browsing   0 members

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