Medusa30 Posted February 26, 2013 Share Posted February 26, 2013 (edited) Hello, I have some issues defining a fix race through properties. I tried... "Race Property PlayerRace Asen Auto" ..., but it gave me an Error. Now I am confused. "Asen" is the editor ID of my custom race. Edited February 26, 2013 by Medusa30 Link to comment Share on other sites More sharing options...
TheSkoomaKing Posted February 26, 2013 Share Posted February 26, 2013 i think its the space that is giving you the error, Race Property PlayerRaceAsen Auto try that instead :) Link to comment Share on other sites More sharing options...
Medusa30 Posted February 27, 2013 Author Share Posted February 27, 2013 (edited) Sorry, I meant an initial value. The Asen race I created should be the initial value for this property so I can compare it like this: if (Game.GetPlayer().GetRace() == PlayerRace) ... Its important for some bonus and restrictions I wanted to make depending on race. For example my new race cant wear shoes and boots because it has no feet to put them onto. Edited February 27, 2013 by Medusa30 Link to comment Share on other sites More sharing options...
Korodic Posted February 28, 2013 Share Posted February 28, 2013 The code declaring this property (variable) should be:Race Property PlayerRace AutoTo give the property (variable) a value, you want to go into the script's "property window" and declare it (assign a value) in there.You also can create properties in there, or as you were doing in the code directly. If you do create the property directly in the code you still need to visit the property window to give it a value.Choices... choices... Link to comment Share on other sites More sharing options...
Recommended Posts