how to make table column an attribute?

Hi everyone,

how to make table column an attribute?

I have a table and then in that table i have a cell that says "bombs" under that it says integer

Now how do I make that column an attribute.

I need it to be an attribute, because I need my spawner actor to say if "bombs" = 1 then spawn bomb?

thank you :)

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Change Attribute game.bombs to tableCellValue(tableName, row, column)
  • bobtheturtlebobtheturtle Member Posts: 226
    @tatiang Thank you!!! You have no idea how helpful that was :)
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Wow, ten months later... you're welcome!
  • bobtheturtlebobtheturtle Member Posts: 226
    Better ate than never :) I'm having trouble getting my game to load the attribute. Any ideas?
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    edited January 2014
    Depends... how are you trying to load it? If you have the data in a table, you would use a Save Table behavior to save it and then the table is automatically loaded at runtime. If you then change an attribute to a tableCellValue from that table, it should have the saved value.
Sign In or Register to comment.