Jump to content

SetRace() doesn't seem to be working


Fishtoast

Recommended Posts

Hey, guys.

 

So I'm adding a disease that turns the player into a Skeever after some time. The only issue is, the SetRace isn't working.

Here's what I have so far.

 

Race property SkeeverRace auto
actor Victim

Event OnEffectStart(Actor Target, Actor Caster)

victim = target
victim.SetRace(SkeeverRace)

EndEvent

 

That's not my final code of course, there will be more to it but right now I just want to turn this person into a Skeever when the effect is applied.

I have set up a new disease and link a new effect to it. Said effect has the above script attached to it, and I have filled in the SkeeverRace property, but sadly, it wont work.

 

Any ideas? Cheers.

 

Edit: No worries, managed to fix it... For some reason starting the script from scratch fixed it.

Edited by Fishtoast
Link to comment
Share on other sites

  • Recently Browsing   0 members

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