Jump to content

Define Race Property


Medusa30

Recommended Posts

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 by Medusa30
Link to comment
Share on other sites

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 by Medusa30
Link to comment
Share on other sites

The code declaring this property (variable) should be:

Race Property PlayerRace Auto


To 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

  • Recently Browsing   0 members

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