What is the "metadata" keyword?
Moderator: English Moderator
Re: What is the "metadata" keyword?
I think you can not, i tried before it is declared as "something" without error but i too could not initialize it.
My specs:
MOBO: MB AM3+ 970 Gigabyte GA-970A-DS3P
CPU: AM3+ AMD FX-8320E
GPU: Nvidia GeForce GTX750-Ti ASUS 2GB DDR5
RAM: DDR3 8GB 1866MHz Kingston HyperX
SSD: SATA3 120gb SanDisk
OS: Ubuntu 19.04
TY MICMO
MOBO: MB AM3+ 970 Gigabyte GA-970A-DS3P
CPU: AM3+ AMD FX-8320E
GPU: Nvidia GeForce GTX750-Ti ASUS 2GB DDR5
RAM: DDR3 8GB 1866MHz Kingston HyperX
SSD: SATA3 120gb SanDisk
OS: Ubuntu 19.04
TY MICMO
Re: What is the "metadata" keyword?
Try :
concerning
Try:
Not sure you can store an Ident after in script (my tests on this part of maniascript are from 2012...)
Tell me if you can
Hope this help
Code: Select all
declare metadata Integer[][][] MetaIntArray3 for Map = [[[1,10,23],[3,6,9]],[[1,2]]];
declare metadata Integer[][][] MetaIntArray4 for Map = [[[0, 1],[2, 3],[4, 5]]];
Code: Select all
// declare metadata Ident MetaIdent for Map;
Code: Select all
declare metadata MetaIdent for Map = Ident;
Tell me if you can

Hope this help

Re: What is the "metadata" keyword?
This syntax works. Thank you!spaii wrote:Try :Code: Select all
declare metadata Integer[][][] MetaIntArray3 for Map = [[[1,10,23],[3,6,9]],[[1,2]]]; declare metadata Integer[][][] MetaIntArray4 for Map = [[[0, 1],[2, 3],[4, 5]]];
It's still not possible. Do you know the declaration of Ident and NullId?spaii wrote:Not sure you can store an Ident after in script (my tests on this part of maniascript are from 2012...)
Tell me if you can
Re: What is the "metadata" keyword?
For what i know, it's possible to initialize empty type also, like spaii wrote earlier:
works for normal persistent variables, i'm not 100% sure how it works on metadata.
you should be able to declare Ident and NullId as type:
Code: Select all
declare persistent Vec3[Text][Text][Text] eXp_widgetLastPos = Vec3[Text][Text][Text];
you should be able to declare Ident and NullId as type:
Code: Select all
declare metadata Ident MetaIdent for Map = Ident;
Re: What is the "metadata" keyword?
This works :
Code: Select all
declare metadata Ident MetaIdent for Map = NullId;
declare metadata MetaIdentTest for Map = NullId;
declare metadata MetaIntArray3 for Map = Integer[][][];
Who is online
Users browsing this forum: No registered users and 1 guest