WOTmodsproductions Posted June 19, 2017 Share Posted June 19, 2017 (edited) 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 June 19, 2017 by thelonewarrior Link to comment Share on other sites More sharing options...
vkz89q Posted June 19, 2017 Share Posted June 19, 2017 You need to make Property for your script. You can type this in your script before(or after) any events: Race Property GhoulRace Auto Const Then click properties on your script and Auto-Fill. Link to comment Share on other sites More sharing options...
Recommended Posts