Jump to content

How to set something as a variable in script?


WOTmodsproductions

Recommended Posts

Im trying to make a script that changes the player race when an item is equipped and this is what I have so far

 


Event OnEquipped(Actor akActor)

Actor PlayerREF = Game.GetPlayer()
PlayerREF.SetRace(akRace = none)

EndEvent
Event OnUnEquipped(Actor akActor)
Actor PlayerREF = Game.GetPlayer()
PlayerREF.SetRace()

EndEvent

 

I want to change it so it changes it to ghoul race but I don't know how to set a variable, for example in the creation kit the ghoul race is simply "Ghoulrace" but when I out ghoulrace in the akrace= it says ghoulrace isn't a variable. How do I set it as a variable?

 

 

Thanks

Edited by thelonewarrior
Link to comment
Share on other sites

  • Recently Browsing   0 members

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