@scale = set(1,1,1);
@rot = quaternion(radians(30),{0,1,1});
※quaternion ⇒ 回転角度(radians),回転軸(vector)
v@trans = set(1,1,1);
s@shop_materialpath = "/mat/constant";
string r = "@Cd.r"; string g = "@Cd.g"; string b = "@Cd.b";
s@material_override = "{'difclrb':"+(b)+",'difclrg':"+(g)+",'difclrr':"+(r)+",}";
//difclrb,g,r はマテリアルによって変わる
//マテリアルの設定で「Use Packed Color」をONにしないといけない様子
string ptn[] = {
"op:/obj/Coin/OUT_Coin500",
"op:/obj/Coin/OUT_Coin100",
"op:/obj/Coin/OUT_Coin50",
"op:/obj/Coin/OUT_Coin10",
"op:/obj/Coin/OUT_Coin5",
"op:/obj/Coin/OUT_Coin1" };
string mPath[] = {
"/mat/aluminum1",
"/mat/titanium",
"/mat/titanium1",
"/mat/copper",
"/mat/goldpaint",
"/mat/aluminum" };
float idx = fit(@ptnum,0,@numpt,0,6);
s@instancepath = ptn[(int)idx];
s@shop_materialpath = mPath[(int)idx];