edited November 2015 in ORK Support
Hello,

I am trying to change out a character Prefab using variables, however when I set:
--------------------------------------------------------------------------
On the Character Conditional Prefab Settings this is what I have set:

value type: Game Variables
Value: inBattle

Type String

Value Type: Value
Value: true


Now, using a event I want to have the character switch out by changing the variable.


Var. Key
value type: Game Variables
Value: inBattle

Type String

String Value
Value Type: Value
Value: true

----------------------------------------------------

Set to Auto Start ( in the scene view )

However it is not changing out the character prefab.
I had this working before. I may have forgot what I did before to get it to work.
Any thoughts?

Post edited by gamingislove on
Check my new site and Podcast!
If you like what you see and hear I would love to hear from you.

Visit Site at :
www.indiegamehustle.com

Check out the Podcast at:
https://indiegamehustle.com/category/the-podcast/

Check out my you tube page with new videos:
INDIEGAMEHUSTLE YOUTUBE

  • You need the Value Type of the variable key to Value if you're defining the variable key. Using the Game Variable value type means that the variable key you're using is stored in the string game variable with the key you've defined.

    See the how-to on game variables for more information.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • I was using Game Var.
    Instead, using value was it. Perfect thank you!
    Check my new site and Podcast!
    If you like what you see and hear I would love to hear from you.

    Visit Site at :
    www.indiegamehustle.com

    Check out the Podcast at:
    https://indiegamehustle.com/category/the-podcast/

    Check out my you tube page with new videos:
    INDIEGAMEHUSTLE YOUTUBE

Sign In or Register to comment.