Why isnt my table coords working?
ElDalton
Member Posts: 21
I Have a table with X and Y values. I have a spawn actor and for the X and Y I have, tablecellvalue(InventorySlots, 1, 1) to fetch the X value of the first inventory slot and tablecellvalue(InventorySlots, 1, 2) to fetch the Y value for the first inventory slot but it seems not to display / spawn the actor in that position. Any ideas?
Comments
Can you post a screenshot of your code? This would give us a better chance at resolving your issue.
Are you spawning relative to scene or actor?
http://imgur.com/a/snSAW
Here you go. And I tried both, but I don't know exactly the difference. Care to explain real quick? Thanks for the assistance!
I'm guessing the PC version is similar enough to the Mac version that you also need to select table (and any attribute) names from the Attribute Browser rather than typing them in. Your table name should be game.Inventory and that needs to appear in the tableCellValue() expression.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Nailed it! Thanks, I appreciate the help guys!:)